I think this is a language misunderstanding.
yes I'm using breakout board.
I don't want QR code.
I will try to make my project simpler and in 2 steps :
step 1:
I have a buliding with 4 floors
I want to put MDBT42Q in each floot , that will use the BLE and "publish" the floor number
(floor1 - "http://www.floor1.com , floor2-http://www.floor2.com , etc...".
in each floor I can only see 1 MDBT42Q (lets say I will put each device far way for the other one , so it is possible that in 1st floor I will only see the firsr MDBT42Q).
I only use Android phone , and I have enable the scanning(to avoid problems).
I think this is a very simple and easy example for what I want to do , and after I will do this I will understand better what to do and do other steps.
I looked at
http://www.espruino.com/Eddystone
and this is what I have upload
require("ble_eddystone").advertise("http://www.david.com");
var on = false;
setInterval(function() {
on = !on;
LED1.write(on);
}, 200);
the blinking part - just to see it's working ....
and now it's working
what about
Gordon
said?
how can I "save" the user MAC that saw the message ?
only by the website I direct to ?
and what does this line do?
NRF.getAddress() will give you the nRF52's address - so you can just add that (or part of it) to the URL.
If I understand correctlly (which I guess I didn't :-) )
this is what I have uploud :
NRF.setAdvertising([
require("ble_eddystone").get("http://www.David1.com"),
{} // this will add a 'normal' advertising packet showing name/etc
], {interval:100});
NRF.setScanResponse(require("ble_eddystone").get("http://www.david.com"));
var on = false;
setInterval(function() {
on = !on;
LED1.write(on);
}, 500);
also how can I add more information in the message ? another small message?20 chars?
not jsut the URL? - or this is not a possible ?
Thank you for the time and the patience that you give me :-)!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think this is a language misunderstanding.
yes I'm using breakout board.
I don't want QR code.
I will try to make my project simpler and in 2 steps :
step 1:
I have a buliding with 4 floors
I want to put MDBT42Q in each floot , that will use the BLE and "publish" the floor number
(floor1 - "http://www.floor1.com , floor2-http://www.floor2.com , etc...".
in each floor I can only see 1 MDBT42Q (lets say I will put each device far way for the other one , so it is possible that in 1st floor I will only see the firsr MDBT42Q).
I only use Android phone , and I have enable the scanning(to avoid problems).
I think this is a very simple and easy example for what I want to do , and after I will do this I will understand better what to do and do other steps.
I looked at
and this is what I have upload
the blinking part - just to see it's working ....
and now it's working
what about
said?
how can I "save" the user MAC that saw the message ?
only by the website I direct to ?
and what does this line do?
If I understand correctlly (which I guess I didn't :-) )
this is what I have uploud :
also how can I add more information in the message ? another small message?20 chars?
not jsut the URL? - or this is not a possible ?
Thank you for the time and the patience that you give me :-)!