whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.2k stars 221 forks source link

Eddystone example not working #128

Closed webfrank closed 5 years ago

webfrank commented 6 years ago

Hi, I’ve tried the example and the esp32 is detected but I cannot provision the beacon with google beacon tool. Also the physical web does not receive the url notification.

What could be the issue?

jolivepetrus commented 6 years ago

Hi @webfrank,

Any error message?

webfrank commented 6 years ago

Hi, no error messages, but after some tries I figured out how to push an url which should be in https and not an url shortener. The real problem is that the google beacon tool does not permit eddystone configuration, probably it is looking for a configuration service which is not implemented.

the0ne commented 5 years ago

@webfrank as the issue is fixed for you, would you be able to provide a short howto? We could integrate that into the wiki and it would help others a lot.

the0ne commented 5 years ago

@webfrank as the issue is fixed for you, would you be able to provide a short howto? We could integrate that into the wiki and it would help others a lot.

the0ne commented 5 years ago

@webfrank please provide a short howto - thanks in advance! Closing this issue for now.

the0ne commented 5 years ago

Using either of the samples

https://github.com/whitecatboard/Lua-RTOS-ESP32/tree/master/components/fs_images/default/examples/lua/eddystone.lua

b1 = bt.service.eddystone.uid("808182838485", 0xed, "3F3B51B60B88EF9949E5", "CF484185AE0B")
b2 = bt.service.eddystone.url("808182838485", 0xed, "https://whitecatboard.org")

b1:start()
b2:start()

https://github.com/whitecatboard/Lua-RTOS-ESP32/blob/master/components/fs_images/default/examples/lua/ble-eddystone.lua

b1 = bt.service.eddystone.uid("808182838485", -42, "3F3B51B60B88EF9949E5", "CF484185AE0B")
b2 = bt.service.eddystone.url("808182838485", -42, "https://whitecatboard.org")

b1:start()
b2:start()

I could easily create a working eddystone beacon.