from spotflow_device import DeviceClient
import time

# Connect to the Platform (starts Device Provisioning if the Device is not already registered)
client = DeviceClient.start(device_id="my-device", provisioning_token="<Your Provisioning Token>", db="spotflow.db")

while True:
    print("While the code runs, the device with ID '" + client.device_id + "' keeps connected to the platform.")

    # Your working code should be here.

    time.sleep(5)
