Startonix / Modular-AI

Advanced AI Training and Building Repository
0 stars 0 forks source link

Edge Computing with AWS Greengrass #158

Open Startonix opened 4 months ago

Startonix commented 4 months ago

greengrass_example.py

import greengrasssdk

client = greengrasssdk.client('iot-data')

def function_handler(event, context): response = client.publish( topic='hello/world', payload='Hello from Greengrass Core!' ) return response

Example usage

event = {} context = {} print(function_handler(event, context))