What I want to have is to send some metrics from greengrass device
to greengrass lambda function
in the local network
.
I'm using the subscribe mode of basicDiscovery.py to send some device metrics to the amazon greengrass core device and invoke the lambda function deployed on the core. The lambda function simply prints the event.
My confusion is when I use a subscription from IoT Cloud -> lambda function
it work's fine but It's not working when I configure a subscription from device -> lambda function
.
Also when I disconnect the device the device from the internet (in case 1), it buffers the messages and sends them when it gets connected to the internet again.
I know that I'm passing xxxxxxx.iot.us-west-2.amazonaws.com
as the endpoint and it's accessible over the internet, but not sure how to have an endpoint for the core.