Puck data at Cloud

Posted on
  • Hi @Gordon,

    I have Pucks which advertise their data.
    I require a device which can scan the Pucks and upload their to the clould through GSM/GPRS module (for example https://www.espruino.com/SIM900) . Is there something like (Puck with GSM/GPRS module) ?

    Thank you!

  • Have a look at http://www.espruino.com/Puck.js+SMS
    Just the other way round ;-)

  • As @Spocki says, there's that tutorial showing how to do it with SMS text messages.

    Realistically all you need to do is use the same wiring, but use the code from https://www.espruino.com/SIM900 and you have an internet connection that you can send data over.

    It could be as simple as running something like this:

    NRF.findDevices(function(devs) {
      var req = http.request({
        hostname: 'your_url',
        port: 80,
        method: 'POST'
      }, function(res) {
       // connected
      });
      req.on('error', function(e) { console.log('error: ',e); });
      req.write(JSON.stringify(devs));
     req.end();
    });
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Puck data at Cloud

Posted by Avatar for user73560 @user73560

Actions