Open Startonix opened 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
event = {} context = {} print(function_handler(event, context))
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))