line-simplebeacon-esp32 icon indicating copy to clipboard operation
line-simplebeacon-esp32 copied to clipboard

Arduino code for LINE Simple Beacon work with ESP32

LINE Simple Beacon for ESP32

Arduino code for LINE Simple Beacon work with ESP32

Requirements

Installation

Please ensure you have Arduino IDE installed and the board disconnected.

  1. Open Arduino IDE
  2. Go into Preferences
  3. Add https://dl.espressif.com/dl/package_esp32_index.json as an 'Additional Board Manager URL'
  4. Go to Boards Manager from the Tools -> Board menu
  5. Search for esp32 and install esp32.
  6. Download and install the CP2102 driver

Setup

  1. Connect the ESP32-DevKitC board via Micro-USB cable to your computer
  2. Go into Tools -> Board and select ESP32 Dev Module from the list
  3. Under Tools -> Port select the appropriate device ie. COM1, /dev/cu.SLAB_USBtoUART
  4. Test uploading to the board by uploading an empty sketch to make sure there are no issues.
  5. Issue LINE Simple Beacon Hardware ID

If you can not find your channel in new LINE Official Account Manager Beacon Register, you can try to register at old LINE@ Manager Beacon Register.

Upload

  1. From this repository, open sample/sample.ino
  2. Change the HWID to your generated HWID.
  3. Adjust the signal length
  4. Upload and Enjoy!

Reference

  • https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/src/BLEBeacon.h
  • https://github.com/linedevth/LINE-Simple-Beacon-ESP32
  • https://github.com/godda/LINE_Simple_Beacon_ESP32
  • https://medium.com/@chawanwitpoolsri/line-beacon-from-esp32-node32-lite-72c0fc7dc646
  • https://engineering.linecorp.com/ja/blog/detail/149/
  • https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/bluetooth/index.html

LICENSE

MIT