Does an GetThingShadowRequest in awsiot.greengrasscoreipc.model require an internet connection back to IOTCore?

0

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

질문됨 2년 전214회 조회
1개 답변
0

The shadow manager component will automatically synchronize shadow state between the cloud and the device. It will continue to work when the device is offline, using the last synchronized state. When the device eventually gets a connection again, the shadow state will be synchronized again with the cloud state.

Cheers,

Michael

AWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠