When attempting to check for the service in central.py, if uart is listed in the advertisement of peripheral.py, the condition never seems to become true.
Peripheral.py
ad = ProvideServicesAdvertisement(hid, uart)
Central.py
if ad.complete_name == 'rhf_periph' and HIDService in ad.services:
Result: False
Peripheral.py
ad = ProvideServicesAdvertisement(uart)
Central.py
if ad.complete_name == 'rhf_periph' and UARTService in ad.services:
Result: False
Peripheral.py
ad = ProvideServicesAdvertisement(hid)
Central.py
if ad.complete_name == 'rhf_periph' and HIDService in ad.services:
Result: True
central.py
peripheral.py
When attempting to check for the service in central.py, if uart is listed in the advertisement of peripheral.py, the condition never seems to become true.
Peripheral.py
ad = ProvideServicesAdvertisement(hid, uart)
Central.py
if ad.complete_name == 'rhf_periph' and HIDService in ad.services:
Result: False
Peripheral.py
ad = ProvideServicesAdvertisement(uart)
Central.py
if ad.complete_name == 'rhf_periph' and UARTService in ad.services:
Result: False
Peripheral.py
ad = ProvideServicesAdvertisement(hid)
Central.py
if ad.complete_name == 'rhf_periph' and HIDService in ad.services:
Result: True
central.py
peripheral.py