- if the MQTT messages could be made to be sent through the Greengrass core device acting as a gateway instead of direct connectivity to the IoT core from the edge device.
Greengrass V1 supports Greengrass Aware Device (GGAD) which are Greengrass aware IoT Things. GGAD's can send messages to IoT Core via GGC Core (Greengrass core device acting as a gateway). Developer guide : https://docs.aws.amazon.com/greengrass/latest/developerguide/module4.html
Greengrass V2 unfortunately does not provide GGAD yet. We are actively working on addressing this gap and hope to release it in the coming months. Until that time, you can use Greengrass version 1 or you could use this example code for V2 (https://github.com/aws-greengrass/aws-greengrass-component-examples/tree/main/mqtt-bridge) as a skeleton for implementing your own MQTT broker on V2 in order to support remote devices.
Could the edge device be configured so that communication can be switched between direct connectivity and via the gateway/aggregator based on presence of internet connectivity between edge device and IoT core?
The option for GGAD to switch between direct connectivity and connecting via Greengrass core based on internet connectivity is NOT supported.
Thank you for your reply Fahad,
I noticed that even when the GG core is not started, the GGADs of the group can send messages to IoT core.
Please let me know how I could strictly route the messages via the Greengrass core when internet connectivity of one or both of the GGAD's is disrupted. Im guessing i would have to have a Lambda running on the Greengrass core that subscribes to a common topic which all GGAD's publish to, The GG core will then publish that to another topic which can be subscribed by the IoT core. The IoT core will have all the subscriptions setup for the above communication paths. Is this possible?
Also please point me to resources where the GG core is used as a gateway to multiple GGAD's. I do not need inter-device communication in my use-case.
Edited by: avikurup on Feb 3, 2021 5:49 AM
[S3] Kinesis, File Gateway, or direct S3 writing?Accepted Answerasked 2 years ago
How can I update the maintenance window and apply the new features or new ONTAP version for FSx for ONTAP earlier than existing weekly maintenance window?Accepted Answerasked a year ago
Is it possible to have Ignition Edge (via MQTT Transmission Plug-in) as a Greengrass V2 client device?Accepted Answerasked 6 months ago
Passing Default Arguments in GreenGrass recipe, fails to do so on IoT Edge deviceasked 9 months ago
Whats the difference between AWS IoT Greengrass and AWS IoT Device Client?Accepted Answerasked 2 years ago
Configuring Edge device for direct or via gateway communicationasked 2 years ago
How to perform edge computing by aws iot greengrassasked 10 days ago
IoT Edge Greengrass command line for restartAccepted Answerasked a year ago
How to implement authentication in AWs IoT Greengrass Component deployed to the Greengrass Core Device?asked 8 months ago
queueing functionality in greengrass coreAccepted Answerasked a year ago