This linebeacon extension conflicts with bluetooth extension, so can't be used together.
This linebeacon extension works with bluetooth extension.
This package makes micro:bit to LINE Beacon.
LINE beacon delivers some content to LINE App on Android/iOS device using BLE.
Users will be able to receive contents matching the place such as visiting coupons and storefront product information from LINE from the beacon installed in the store.
https://developers.line.me/en/docs/messaging-api/using-beacons/
- Register and get your HWID at https://admin-official.line.me/beacon/register
- Add a 'LINE Beacon start' block and copy & paste your HWID (5 bytes hex).
first compile takes few minutes.
input.onButtonPressed(Button.A, function () {
basic.showIcon(IconNames.Yes)
linebeacon.start("0f0f0f0f0f")
})
input.onButtonPressed(Button.AB, function () {
basic.showIcon(IconNames.Yes)
linebeacon.startWithDeviceMessage(
"0f0f0f0f0f",
"1a2b3c4d5e6f70809010a0b0c0"
)
})
input.onButtonPressed(Button.B, function () {
basic.showIcon(IconNames.No)
linebeacon.stop()
})
basic.showIcon(IconNames.Heart)
MIT
- for PXT/microbit