Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Webinar Element14: how to connect things to the Internet with theThings.IO

thethings.iO
September 16, 2014

Webinar Element14: how to connect things to the Internet with theThings.IO

This is a Webinar for Element14 made by Marc Pous: How to connect things to the Internet with theThings.IO.

thethings.iO

September 16, 2014
Tweet

More Decks by thethings.iO

Other Decks in Technology

Transcript

  1. THETHINGS.IO IoT platform connecting different things in one dashboard and

    when your things talk, functionality augments, and you get more.
  2. THETHINGS.IO theChallenge Companies developing new things currently have a lot

    to do - they have to design, prototype, and manufacture the thing, build the app to control it, and develop the cloud platform to store the data, all from scratch theThings.IO significantly reduces the time and cost of this process, while offering companies increased functionality.
  3. THETHINGS.IO // configure led to be a digital output micro.configure(ANALOG_IN);

    function loop() { // read values local pin1Value = hardware.pin1.read(); // create json and send to agent local data = { "thing":{ "id":"THING_TOKEN"}, "values": [{"key": "noise", "value": pin1Value, "units": "", "type":"temporal"}]} agent.send("senddata", data); // recursively call self after 0.5 seconds imp.wakeup(0.5, loop); } // start the loop loop(); Device.nuts local url = "https://api.thethings.io/0.1/ThingWrite/"; local user_token = "XXXXXXXXXXXX"; local headers = { "Authorization": "theThingsIO-Token: " + user_token, "Content-Type": "application/json; charset=UTF-8" } device.on("senddata", function(data) { local body = http.jsonencode(data); local resp = http.post(url, headers, body).sendsync(); return resp; }); Agent.nuts