Hi,
I am working on a project that uses IOT named shadows on a raspberry pi. I am wondering does an GetThingShadowRequest in awsiot.greengrasscoreipc.model require an internet connection back to AWS's IOTCore? I have deployed the shadow manager component to allow syncing back to IOTCore. So I understand that syncing will happen when connectivity is returned.
But I am wondering if the raspberry pi looses internet connectivity can my code still get and update the local named shadows?
For example, will the following code still work if my raspberry pi doesn't have internet connectivity? Or more specifically does the following code on a raspberry pi cause the request to be made back to IOTcore on AWS?
ipc_client = awsiot.greengrasscoreipc.connect()
# create the GetThingShadow request
get_thing_shadow_request = GetThingShadowRequest()
Many thanks,
Oide
As a general advice, you should use the greengrass clientv2 libraries (https://aws.github.io/aws-iot-device-sdk-python-v2/awsiot/greengrasscoreipc.html#module-awsiot.greengrasscoreipc.clientv2). These present a more idiomatic API and prevent the occurrence of some threading issues.