Home/Support/Support Forum/trying to upload ethernet data to digi cloud
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

trying to upload ethernet data to digi cloud

0 votes
Have device that sends data via IP address (ethernet)
I need python script that will upload data to cloud device WR21

Thank you all for your time. :)

Cheers,

George
asked Oct 5, 2015 in Python by gvankaam62 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Hi George,

What is the device that is sending the data?

There are two ways to send a datapoint to device cloud.

The first is just with a POST and the second is by inserting it into the EDP stream of the cloud connector. The first one is very simple and you can see how to do this if you go to the API Explorer under the Documentation tab in device cloud. It will allow you to create a data point and export it in python.


The second requires a device with the cloud connector already running. If it is a WR21 then you should use the DIA framework and allow the data to be transmitted within the EDP protocol. This is a little more complex but still fairly simple if you use the Digi ESP for python. You can get a copy of it here: http://www.digi.com/support/productdetail?pid=5499&type=drivers

The benefit of using the second method is that it is more secure and is using the same channel as the device monitoring.
answered Oct 6, 2015 by NicholasWilson Veteran of the Digi Community (1,003 points)
Hi Nicholas,

Thank you for the information.
I downloaded ESP for Digi, but did not see any examples to use for my purpose. The device is shown in at the following link. http://www.oxts.com/products/rt2000-family/

Hope this helps. Also I have no programming experience so this is a big learning curve, ;)
...