Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TSpad1
New Contributor I
2,304 Views

Problems Receiving IoT Analytics Actuation

Hello,

I am having trouble receiving the actuation requests from the IoT dashboard site. I have my device activated and communicating fine with sensors. On the Edison, I am running https://github.com/enableiot/iotkit-samples/blob/master/python/IoTkitActuationExample.py this script. But when a send data to the edison over MQTT from the control pannel in IoT Dashboard, nothing is recieved in the python script. When I run iotkit-admin pull-actuations the edison does in fact receive the data and it says it was recieved successfully. It sends it to the UDP port and says UDP Closing from undefined.

Thank you for the help.

6 Replies
TSpad1
New Contributor I
75 Views

After changing to the MQTT protocol (iotkit-admin protocol mqtt) running iotkit-admin test returns the following error:

2015-10-05T22:06:55.253Z - info: Connection to MQTT broker established.

2015-10-05T22:06:55.373Z - error: Connection to MQTT broker is closed. Retrying...

Any ideas?

Carlos_M_Intel
Employee
75 Views

Hi Mach_5

How are you sending the messages from Dashboard?

Did you follow these steps to configure the software and the board: https://software.intel.com/en-us/intel-iot-platforms-getting-started-cloud-analytics# testing-network-connectivity Intel® IoT Platforms: Getting Started: Cloud Analytics | Intel® Developer Zone ?

Which image version do you have on your board.?

Kind regards,

Charlie

TSpad1
New Contributor I
75 Views

Thanks for the reply CMata_Intel.

I am sending them from the control tab. I select my component and set the transport type to mqtt and add the action then hit send. If the protocol is set to REST I can run iotkit-admin pull-actuations and the data is printed out. When the protocol is set to MQTT I get the error is the second post above.

I did follow your linked in steps and have been using sensors just fine for the past week or two. iotkit-agent -V returns 1.7.0 configure-edison --version returns 159. I flashed that image about two weeks ago.

TSpad1
New Contributor I
75 Views

This morning I updated to version 1.8.2 (npm update -g iotkit-agent) but I still get an error when using the MQTT protocol.

As found in /tmp/agent.log:

{"level":"error","message":"Connection to MQTT broker is closed. Retrying...","timestamp":"2015-10-06T15:57:14.741Z"}

I get the same error when running iotkit-admin test

Carlos_M_Intel
Employee
75 Views

Hi Mach_5

Could you attach the full log of running: iotkit-admin test and systemctl status iotkit-agent? Are you able to see your board connected in My Charts?

Regards,

Charlie,

TSpad1
New Contributor I
75 Views

Thanks for the help.

I opened a issue in the iotkit-agent repository and found the solution. It was discussed here:

https://github.com/enableiot/iotkit-agent/issues/81 https://github.com/enableiot/iotkit-agent/issues/81

Mach_5

Reply