I am trying to log data from my tower developement system. (K60n512) I understand how the javascript is used to get data from the cgi page that is generated on a web page request. I need to find out if there is a way to progromatically push data to a data logging website like cosm.com to share the data.
I have found a javascript that should work, but when I try to compile it into the webserver using the build webpages batch file and then compile, the .js file gives me errors,
The http command set that is used in the demos I have looked at only allow access to the local web pages, not push data out to other web sites. Any help would be appreciated.
Jay Walther
Hi Jay,
There is not support for JSON request in RTCS. I can see that Cosm is using also TCP connections to perform the requests. You could build your HTTP headers but I don't see there the problem. MQX does not have SSL and therefore you cannot authenticate using encryption libraries like SSL and Cosm request for authentication. You first need to resolve the log-in with Cosm before thinking in sending request to it.
I hope this helps.
Best Regards,
Garabo