I’m trying to send data to a variable on bucket from Analisys, but it’s not working.
I’m getting this message on Console:
{‘status’: False, ‘message’: ‘Function Parse Error: TypeError: Cannot convert undefined or null to object’}
This is part of my code:
data = {
‘variable’: ‘energy_today’,
‘value’: str(round(energy_today,2)),
}
result = my_device.insert(data)
context.log(result)
Could someone help me?