unable to make a simple BLE .... #3381
Replies: 4 comments
-
|
Posted at 2020-05-20 by @gfwilliams Hi.
But you also want the URL to be shown as well? I think the issue is you have some of the arguments in the wrong places, and also some you don't need. Try: This does seem to be reasonable well documented (including an example specifically onm showing battery percentage and eddystone) on http://www.espruino.com/Reference#l_NRF_setAdvertising
For what you're doing, you don't need a scan response.
Yes, correct.
If it's coming up with those errors then it may not be appearing. Also, you need to be disconnected from Bluetooth for the device to start advertising.
Maybe try it with the new code I suggested. However some older Espruino firmwares did have a problem when advertising using an even number of advertising packets. If you really can't upgrade the firmware (not even with the iOS/Android phone that you seem to be using with nRF Connect???) then you could try:
That'll be because of your old code - try with the updated code. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-05-20 by David1234321 great so see I understand it correct: so now: Thank you so so much for this!
in the NRF I can see battery\temp but not age -jsut Service Data without name - why?
if I want to make 1 min for website1 and 2 min for website 2?
Thanks, |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-05-21 by @gfwilliams
The issue is that's a characteristic, not a standard service that is used with advertising. It's still broadcasting the data (as a 2 character string), it's just not being interpreted by the app.
Then you need to call
It's because The module can't directly measure the voltage on V+, you need to make a potential divider for that and connect it to an analog input - there are a few examples on the forum. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-05-24 by David1234321 Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-05-20 by David1234321
Hello ,
I have try and try but your support and documentation is not so understandble for first use....
I'm using MDBT42Q version 2.04 (because I can't update using windows computer).
this is what I want to do :
publish my device using BLE , so whenever people will scan they will se my device
simple as this
I want people will be able to see:
this is what I want to upload to the MDBT42Q (after reading 10 times on the support part)
but it doesn;t work
I get error
why?
this is as the example you post
so when I upload this it is working :
why?
maybe I'm missing something so this are my questions about the code above:
discoverable \scannable - isn't all the same?
if I disable showname - I will see every data except the devcie name - right?
when I just search using bluethhoth scan - I don't see the device at all.
when I search using "BLE Scanner" - I see the device (without any information ) but when I press "Open url" - it redirect my to my site . but no name\temp - nothing.
when I use "nRF Connect" - I don't the name of the device just "Te" and the battery 3% temp 85
so what is wrong?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions