Recently attended a workshop using iotkit-agent on the Edison board to push data to Intel EnableIoT. Everything worked and it was great.
I want to get iotkit-agent running on Linux. I have followed the tutorial at the link below to install the iotkit-agent on my Tinkerforge 'RED Brick' running Debian Linux
Using the commands below appears to install iotkit-agent just fine (using the 2. Installing using npm method).
npm install iotkit-agent
mv node_modules/iotkit-agent ./
npm install forever
Following the guide below, I've registered the device on EnableIoT and activated it.
I've run the "./iotkit-admin.js catalog" command and registered catalog items for 'sound' ,'temperature', 'humidity' and 'light' using the command "./iotkit-admin.js register <measure> <catalog-id>" command.
Starting the agent using the command "
./start-agent.sh", works fine.
I can then use the command "./iotkit-admin.js observation temperature 30" for example to push data to EnableIOT. This works fine
After starting the iotkit-agent service (starts fine) and attempting to run some Python code sending JSON encoded packets to UDP port 41234 at localhost 127.0.0.1, nothing happens and I am not sure what I am doing wrong.
My Python code has been sourced from here(and changed a bit)
and as far as I can tell, produces JSON encoded data in the same format as described here:
When I test the Python code in Windows with a small Python script listening on port 41234, the data appears to be sent and received OK. However, on my little Debian RED brick, data does not appear to be being sent.
I attach the Python code I have been using to send data and the code I used to listen to port 41234.
I would appreciate any ideas anybody has