-
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 athttp://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 :-)!
-
OK
let see if I understand it correct I will try to expalin even more:
1 .I'm using Desktop computer with windows7, no bluetooth.
I'm connecting to the device using serial connection - working without any problem. I can see :"Found MDBT42Q,2v04"
I can also send in the terminal
"1+2"
and I get 3
so this mean everything is OK,right?
2 .I mange to upload a simple blink led code I press the "up arrow" , and also wrote on the terminal "save()". - now after power reboot the device is running my new code.
up until here - I guess I did good , and understand how to use the web IDE.what I want to do is :
write\flash a code so the devcie will publish my own data as BLE
for example : "Hello to all
connect to david.com to get free gift":- david.com will be a link
- I assume the remote device will be with internet connection.
now I have some questions:
- can I do this using this device?
- is there an example code for this? or something to begin with ?
- is there any way to know who is connect to my website using the BLE "advertisement"?
so I can "save" the mac address ? - can I change the text over the internet? i guess I will have to uplaod the all code again ?
I understand that for 3-4 I need internet connection and a device that can connect to it using serial (?) , like PI
and I need to know the pi IP and everything . this is not a problem.
but for the first stage to show my project work I need to make a POC of 1&2.
after it I will add in the main code all kind of functions like"
"Send MAC to MyServer using UDP"
"Save Log to PI"
hope now my project is more understanble and you can help me continue working on it ,
Thanks ,
- david.com will be a link
-
Do I have to use PI with this device?
it can't work as standalone ?
setup it once , connect it to power and "forget" about it?I have try 4 time to understand how to work with this site
https://www.espruino.com/Web%20Bluetooth
and also this
http://www.espruino.com/Quick+Start+BLE
this is the most ununderstable explain\exmaple I have ever read .
and I read a lot of tech .
can't find a simple guide of how to upload using a serial connection,
I don't have bluetooth on my computer - so I can't upload create a project on it?
maybe there is a very simple even "dumb" guide ?
Thanks,
maybe I didn't understand the using of the BLE
do I have to have an internet connection for it to work?
if not - why do I need to use pi?
or the pi is just for manage the data and get all kind of stat about people how see my BLE?Thanks ,
-
-
Hello,
I want to create a simple BLE that will "post" my website
I have connected the device using a serial-usb and I can see it on the "ESPRUINO WEB IDE"
"Found MDBT42Q,2v04"
now what ?
I have look at the tutrial , and mange to make LED1 blink
but now what?
how do I write a code to it the will publish my website "http://www.myWeb.com" ?Thanks ,
Hello Robin
because (as I understand ) when I publish the floor number ,everyone can see it -even 100 people with andorid . it will be like a billboard on the highway(which you don't know really how much people read your sign).
is it posiable to addvertise a string and not a url?
for example "This is the 1st floor".?
can I use another language\fonts for the addvertide? not english? Chinese\Arabic\etc..
if I connect the BLE to a PI -can I control on it and send differnet text every x hours using python code or whatever?
Thank you for the help