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

LINE Thingsとは何か? / What is LINE Things?

LINE Thingsとは何か? / What is LINE Things?

2019年3月13日、LINE ThingsとLINE Clovaをテーマとした勉強会が、LINEのテクノロジーパートナー向けに開催されました。
その中で、LINE ThingsのProduct Managerである高久が登壇したプレゼンテーション資料です。

◆セミナーレポート
https://www.linebiz.com/jp/column/seminar-report/20190313
◆テクノロジーパートナーについてはこちらをご覧ください
https://www.linebiz.com/jp/partner/

53850955f15249a1a9dc49df6113e400?s=128

LINE Developers
PRO

May 14, 2019
Tweet

Transcript

  1. None
  2. LINE Things LINE server LINE app Device

  3. IoTσόΠεͱ͔BLEʹ͍ͭͯͷ஌ࣝͳ͍Μ͚ͩͲɺ Web Developerʹ΍Δ͜ͱͬͯ͋Δͷʁ IoTαʔϏεͬͯ۩ମతʹͲΜͳ΋ͷ͕͋Δͷʁ Έͳ͞Μ͸ٙ໰ʹࢥ͍ͬͯΔ͔΋͠Ε·ͤΜ

  4. LINE Things͸ɺ ؆୯ʹIoTαʔϏε͕ ։ൃͰ͖Δ؀ڥΛఏڙ͠·͢

  5. LINE Thingsͱ͸Կ͔ʁ - ։ൃʹࢸΔܦҢʹ͍ͭͯ LINE Thingsͱ͸Կ͔ʁ - ͲͷΑ͏ͳՁ஋Λఏڙ͢Δͷ͔ʁ LINE Thingsͱ͸Կ͔ʁ

    - ࢓૊Έɾ࣮૷ৄࡉ ࠓ೔͓࿩͢Δ಺༰
  6. LINE Thingsͱ͸Կ͔ ʔ։ൃʹࢸΔܦҢʔ

  7. LINE Beacon

  8. LINEνΣοΫΠϯ

  9. LINE Beacon

  10. LINE Beacon Your server LINE LINE server LINE app Messaging

    API LINE Beaconͷ࢓૊Έ
  11. LINE LINE server LINE app LINE BeaconͰඞཁͳ։ൃ LINE Beacon Messaging

    API Your server
  12. དྷళ͓ͨ͠٬༷͚ͩʹɺಛผͳϝοηʔδΛૹΔ

  13. Bluetooth Low EnergyΛ׆༻ͨ͠૒ํ޲௨৴ ৽ͨͳ՝୊

  14. Bluetooth Low EnergyΛ׆༻ͨ͠૒ํ޲௨৴ Bluetooth Low Energy moduleΛ౥ࡌͨ͠σόΠε΁ͷରԠ ৽ͨͳ՝୊

  15. Bluetooth Low EnergyΛ׆༻ͨ͠૒ํ޲௨৴ Bluetooth Low Energy moduleΛ౥ࡌͨ͠σόΠε΁ͷରԠ ϢʔβΠϯλϥΫγϣϯΛඞཁͱ͠ͳ͍௨৴ ৽ͨͳ՝୊

  16. None
  17. LINE LINE Thingsͷ֓ཁ LINE server LINE app Device Your server

    Messaging API LIFF app LIFF BLE
  18. σόΠε࿈ܞػೳ LIFF BLEʢLIFF SDK BLE ϓϥάΠϯʣ ࣗಈ௨৴ LINE Things͕ఏڙ͢Δػೳ

  19. LIFF - LINE Front-end Framework

  20. σόΠε࿈ܞͱLIFF BLE

  21. LIFF BLE - ମॏܭ

  22. LIFF BLE σόΠε࿈ܞ

  23. LIFF BLE - ೤෼෍ͷܭଌ

  24. LIFF BLE - e ink

  25. ࣗಈ௨৴

  26. ࣗಈ௨৴ - ମॏܭ

  27. LINE Thingsͱ͸Կ͔ ʔͲͷΑ͏ͳՁ஋Λఏڙ͢Δͷ͔ʁʔ

  28. IoTσόΠεΛ࢖ͬͨ͜ͱ͋Γ·͔͢ʁ

  29. IoTσόΠεͷڞ༗

  30. ̍ճ͚ͩͷར༻

  31. ֶशίετ͕গͳ͍ LINE Things͕Ϣʔβʹૌٻ͢ΔՁ஋

  32. ֶशίετ͕গͳ͍ ΈΜͳͰ࢖͑ΔɻγΣΞ͕͠΍͍͢ LINE Things͕Ϣʔβʹૌٻ͢ΔՁ஋

  33. ֶशίετ͕গͳ͍ ΈΜͳͰ࢖͑ΔɻγΣΞ͕͠΍͍͢ ͙͢ʹ࢖͑Δɻμ΢ϯϩʔυͷඞཁ͕ͳ͍ LINE Things͕Ϣʔβʹૌٻ͢ΔՁ஋

  34. ΈΜͳ͕LINEΛ࢖͍ͬͯ·͢

  35. ར఺͸Θ͔͚ͬͨͲɺ΍ͬͺՈిϝʔΧʔ͡Όͳ͍͠ɻ ϋʔυ΢ΣΞ෼͔ΔਓͳΜͯɺࣾ಺ʹ͍ͳ͍͠ɻ IoTαʔϏεͬͯɺ·ͩ·ͩԑԕ͍ΑͶɻ Έͳ͞Μ͸ٙ໰ʹࢥ͍ͬͯΔ͔΋͠Ε·ͤΜ

  36. LINE Beacon

  37. LINEΛ׆༻ͨ͠৽͍͠αʔϏεͷ૑ग़

  38. LINE Thingsͱ͸Կ͔ ʔ࢓૊Έɾ࣮૷ৄࡉʔ

  39. LINE LINE Thingsͷ֓ཁ LINE server LINE app Device Your server

    Messaging API LIFF app LIFF BLE
  40. LINE LINE ThingsͰඞཁͳ։ൃ LINE server LINE app Device Your server

    LIFF app Messaging API LIFF BLE
  41. LIFF BLE

  42. None
  43. LINE app LIFF BLE͕ͲͷΑ͏ʹಈ࡞͢Δͷ͔ʁ LIFF app LIFF SDK (BLE plugin)

    BLE native component Device
  44. LIFF BLEͷ࣮૷ const device = await liff.bluetooth.requestDevice(); const gatt =

    await device.gatt.connect(); const service = await gatt.getPrimaryService( 'E625601E-9E55-4597-A598-76018A0D293D' ); const characteristic = await service.getCharacteristic( '26E2B12B-85F0-4F3F-9FDD-91D114270E6E' ); characteristic.addEventListener('characteristicvaluechanged', (e) => { console.log('value changed to:' + e.target.value); }); await characteristic.startNotifications();
  45. Connection ϓϩηε LINE app Device ΞυόλΠδϯά εΩϟχϯά ίωΫτ

  46. const device = await liff.bluetooth.requestDevice(); const gatt = await device.gatt.connect();

    const service = await gatt.getPrimaryService( 'E625601E-9E55-4597-A598-76018A0D293D' ); const characteristic = await service.getCharacteristic( '26E2B12B-85F0-4F3F-9FDD-91D114270E6E' ); const value = await characteristic.readValue(); Connection ϓϩηε
  47. σʔλΞΫηε LINE app Device Read LINE app Device Write LINE

    app Device Notify
  48. σʔλΞΫηε const device = await liff.bluetooth.requestDevice(); const gatt = await

    device.gatt.connect(); const service = await gatt.getPrimaryService( 'E625601E-9E55-4597-A598-76018A0D293D' ); const characteristic = await service.getCharacteristic( '26E2B12B-85F0-4F3F-9FDD-91D114270E6E' ); const value = await characteristic.readValue();
  49. Read const device = await liff.bluetooth.requestDevice(); const gatt = await

    device.gatt.connect(); const service = await gatt.getPrimaryService( 'E625601E-9E55-4597-A598-76018A0D293D' ); const characteristic = await service.getCharacteristic( '26E2B12B-85F0-4F3F-9FDD-91D114270E6E' ); const value = await characteristic.readValue();
  50. Write const device = await liff.bluetooth.requestDevice(); const gatt = await

    device.gatt.connect(); const service = await gatt.getPrimaryService( 'E625601E-9E55-4597-A598-76018A0D293D' ); const characteristic = await service.getCharacteristic( '26E2B12B-85F0-4F3F-9FDD-91D114270E6E' ); await characteristic.writeValue( new TextEncoder(‘utf-8‘).encode(‘LIFF BLE’) );
  51. Notify const device = await liff.bluetooth.requestDevice(); const gatt = await

    device.gatt.connect(); const service = await gatt.getPrimaryService( 'E625601E-9E55-4597-A598-76018A0D293D' ); const characteristic = await service.getCharacteristic( '26E2B12B-85F0-4F3F-9FDD-91D114270E6E' ); characteristic.addEventListener('characteristicvaluechanged', (e) => { console.log('value changed to:' + e.target.value); }); await characteristic.startNotifications();
  52. ࣗಈ௨৴

  53. None
  54. LINE ࣗಈ௨৴͕ͲͷΑ͏ʹಈ࡞͢Δͷ͔ʁ LINE server LINE app Device Your server Messaging

    API (webhook) γφϦΦ࣮ߦ݁Ռ ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ γφϦΦηοτొ࿥ γφϦΦηοτ൓ө ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ γφϦΦ࣮ߦ
  55. LINE γφϦΦηοτొ࿥ Device γφϦΦ࣮ߦ Messaging API (webhook) γφϦΦ࣮ߦ݁Ռ ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ LINE

    app γφϦΦηοτ൓ө ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ Your server LINE server γφϦΦηοτొ࿥
  56. γφϦΦ τϦΨʔɿ࣮ߦͷى఺ • ଈ࣌ • NotificationΛड͚औͬͨλΠ ϛϯάʢNotifyͷ͜ͱͰ͢ʣ ΞΫγϣϯɿ࣮ߦ಺༰ • σʔλΛऔಘ͢Δ

    • σʔλΛॻ͖ࠐΉ • Ұఆ࣌ؒ଴ͭ
  57. γφϦΦηοτ • ଈ࣌ • σʔλΛऔಘ͢Δ • σʔλΛॻ͖ࠐΉ • NotificationΛड͚औͬͨλΠ ϛϯάʢNotifyͷ͜ͱͰ͢ʣ

    • σʔλΛऔಘ͢Δ • σʔλΛॻ͖ࠐΉ • ଈ࣌ • Ұఆ࣌ؒ଴ͭ • σʔλΛॻ͖ࠐΉ
  58. Product͝ͱʹ͚̍ͭͩγφϦΦηοτΛొ࿥Մೳ γφϦΦηοτొ࿥ʹ͸LINE ThingsͷAPIΛར༻ ొ࿥ޙɺγφϦΦηοτͷ൓ө͸ϦΞϧλΠϜͰ͸͋Γ·ͤΜ γφϦΦηοτొ࿥

  59. LINE γφϦΦηοτ൓ө Device γφϦΦ࣮ߦ Messaging API (webhook) γφϦΦ࣮ߦ݁Ռ ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ Your

    server γφϦΦηοτొ࿥ LINE server LINE app γφϦΦηοτ൓ө ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ
  60. LINE γφϦΦ࣮ߦ γφϦΦηοτొ࿥ γφϦΦηοτ൓ө ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ LINE server Your server Messaging

    API (webhook) γφϦΦ࣮ߦ݁Ռ ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ LINE app Device γφϦΦ࣮ߦ
  61. LINE γφϦΦ࣮ߦ݁Ռ γφϦΦηοτొ࿥ γφϦΦηοτ൓ө ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ Device γφϦΦ࣮ߦ LINE server LINE

    app Your server Messaging API (webhook) γφϦΦ࣮ߦ݁Ռ ϦΞϧλΠϜͰ͸൓ө͞Ε·ͤΜ
  62. γφϦΦ࣮ߦ݁ՌͰฦ٫͞ΕΔ஋ τϦΨʔ • NotificationΛड͚औͬͨλΠ ϛϯά ΞΫγϣϯ • σʔλΛऔಘ͢Δ

  63. ؆୯ʹ࣮૷͢Δ͜ͱ͕Ͱ͖Δ ແྉͰࢼ࡞͕Ͱ͖Δ LINE͔ͩΒɺ؆୯ʹγΣΞɺઆ໌Ͱ͖Δ LINE ThingsΛ׆༻͢Δར఺

  64. LINE Things Starter

  65. THANK YOU