in esp32-ble-device/main.py [0:0]
def service_loop(self):
# Apply application code here for periodic / looped functions or
# leave as a slow loop to hold the process up to process event driven
# BLE / GPIO / IRQ notifications.
try:
while True:
# Just do slow loop to hold up process
time.sleep(10)
except Exception as err:
self.publish_exception(500, 'EXCEPTION: Service loop - ERROR MESSAGE: {}'.format(err))