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

Mongoose OSとIFTTTでJavaScript IoT事始め / IoT with ...

shanonim
November 18, 2017

Mongoose OSとIFTTTでJavaScript IoT事始め / IoT with Mongoose OS and IFTTT

2017.11.18
秋のJavaScript祭 in mixi 2017
https://javascript-fes.doorkeeper.jp/events/66335

shanonim

November 18, 2017
Tweet

More Decks by shanonim

Other Decks in Technology

Transcript

  1. load('api_config.js'); load('api_http.js'); load('api_gpio.js'); load('api_timer.js'); let button = 25; GPIO.set_button_handler(button, GPIO.PULL_UP,

    GPIO.INT_EDGE_NEG, 200, function() { print("clicked!"); HTTP.query({ url: 'https://maker.ifttt.com/trigger/esp32/with/key/{your-key}', headers: { }, data: { event: 'esp32', message: 'clicked!', timestamp: Timer.now() }, success: function(body, full_http_msg) { print(body); }, error: function(err) { print(err); }, }); }, null);