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

obnizOSプラグインを試してみた / obnizOS Plugin

386cb4a00138384e4f584ac791aaf141?s=47 Shingo Fukui
November 17, 2020

obnizOSプラグインを試してみた / obnizOS Plugin

IoTLT vol.69の発表資料
タイトル:obnizOSプラグインを試してみた
イベントのconnpassページ:https://iotlt.connpass.com/event/192582/

386cb4a00138384e4f584ac791aaf141?s=128

Shingo Fukui

November 17, 2020
Tweet

Transcript

  1. COPYRIGHT ©2020 SHINGO FUKUI obnizOSϓϥάΠϯΛࢼͯ͠Έͨ 2020೥11݄17೔ IoTറΓͷษڧձʂ IoTLT vol.69@youtube ෱Ҫ

    ᚸޗ
  2. COPYRIGHT ©2020 SHINGO FUKUI ࣗݾ঺հ ;͍͘ ͠Μ͝ ෱Ҫᚸޗ @SilkAndTikit ݚڀ৬


    ɹˣ
 ιϑτ΢ΣΞΤϯδχΞ
 ɹˣ
 IoTίϯαϧɾڭҭ
 ɹˣ ݉ۀओ෉ʢि5೔༦৯࡞Γʣ 2 ✦ GWΞυϕϯτΧϨϯμʔ ✦ IoTLT Vol.64 ✦ IoTLT Vol.66
  3. COPYRIGHT ©2020 SHINGO FUKUI 2020೥7݄ িܸͷχϡʔε 3

  4. COPYRIGHT ©2020 SHINGO FUKUI obniz Board ʢϋʔυ΢ΣΞ੡඼ʣ ΈΜͳେ޷͖ obniz 4

    obnizOS ʢιϑτ΢ΣΞ੡඼ʣ obnizOS Πϯετʔϧ
  5. COPYRIGHT ©2020 SHINGO FUKUI obnizͷಛ௃ ֎෦Ͱ࣮ߦ͞ΕΔϓϩάϥϜ͔ΒίϚϯυΛૹ৴ͯ͠ಈ ࡞ͤ͞Δɻ 5 JavaScript
 ϓϩάϥϜ

    ίϚϯυɿio0=0V ίϚϯυɿio1=5V ίϚϯυɿio1=̌V ωοτϫʔΫ LED఺໓
  6. COPYRIGHT ©2020 SHINGO FUKUI ߴ଎ಈ࡞͸΍΍ۤख ωοτ઀ଓ͕੾ΕΔͱಈ࡞͠ͳ͍ obnizͷऑΈ 6 JavaScript
 ϓϩάϥϜ

    JavaScript
 ϓϩάϥϜ
  7. COPYRIGHT ©2020 SHINGO FUKUI ߴ଎ಈ࡞͸΍΍ۤख ωοτ઀ଓ͕੾ΕΔͱಈ࡞͠ͳ͍ obnizͷऑΈ 7 JavaScript
 ϓϩάϥϜ

    JavaScript
 ϓϩάϥϜ ϓϥάΠϯͰղܾʂ
  8. COPYRIGHT ©2020 SHINGO FUKUI ࢖ͬͯΈΔલʹ૝૾ͯͨ͠΋ͷ Relational DBͷετΞʔυϓϩγʔδϟΈ͍ͨͳ΋ͷʁ 8 ϓϥάΠϯA ૹ৴

    Call ϓϥάΠϯA ϓϩάϥϜ obnizOS ϓϥάΠϯA ࣮ߦ Store
  9. COPYRIGHT ©2020 SHINGO FUKUI ϓϥάΠϯͷ࡞Γํ Arduino IDEͰϓϩάϥϜΛ࡞Γॻ͖ࠐΉ obnizOS͸αϒλεΫͱͯ͠ಈ࡞͢Δ 9 ϓϥάΠϯ


    ϓϩάϥϜ obnizOS ىಈ ॻࠐ
  10. COPYRIGHT ©2020 SHINGO FUKUI obnizOSͱϓϥάΠϯͷ௨৴ 10 ϓϥάΠϯ obnizOS obniz.commandReceive() obniz.commandSend()

    obniz.plugin.onreceive obniz.plugin.send() ֤छΠϕϯτ ɾWiFiεΩϟϯ ɾωοτ઀ଓ ɾΫϥ΢υ઀ଓ ɹɹɾɾɾ obniz.onEvent(onEvent); ड৴ ૹ৴
  11. COPYRIGHT ©2020 SHINGO FUKUI ϓϥάΠϯΛॻ͍ͯΈͨ खͷߴ͞ʹԠͯ͡LEDόʔͷޫΔ௕͕͞มΘΔ 11

  12. COPYRIGHT ©2020 SHINGO FUKUI ϓϥάΠϯͷศརͳ࢓૊ Ϋϥ΢υ͔ΒϓϥάΠϯͷॻ͖׵͑ 12 ొ࿥ WiFiܦ༝Ͱ
 ॻ͖ࠐΈ

    obnizΫϥ΢υ ϨσΟϝΠυͷϓϥάΠϯ΋ఏڙ͞ΕΔΒ͍͠
 ɹࣗ෼ͰϓϥάΠϯΛॻ͔ͳͯ͘΋ࡁΉͷͰָɹ
  13. COPYRIGHT ©2020 SHINGO FUKUI ·ͱΊ Arduinoͷϓϩάϥϛϯάͷܦݧ͕͋Ε͹ɺϓϥάΠϯ Λ࡞Δͷ͸ΘΓͱ؆୯ɻ ετΞʔυϓϩγʔδϟͷΑ͏ʹϓϥάΠϯΛϞδϡʔ ϧͱͯ͠ॻ͖ࠐΉͷͰ͸ͳ͘ɺArduinoϓϩάϥϜ಺Ͱ obnizOSΛαϒλεΫͱͯ͠ىಈ͢Δ࢓૊Έɻ

    ϨσΟϝΠυͷϓϥάΠϯ͕ఏڙ͞ΕΕ͹؆୯ʹ࢖͑Δ Α͏ʹͳΔɻকདྷָ͕͠Έɻ 13