Puck.js advertising data - manufacturerData - button click #2996
Replies: 8 comments
-
|
Posted at 2018-08-28 by @gfwilliams Are those One thing that might be worth trying is Could you also add something like |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2018-08-28 by Christof550 OK thank you i'll try with "debounce:20" and the "LED.set() / LED.reset()" at the beginning / end of setWatch. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2018-08-28 by Christof550 Forget about the "\n" problem i have write it a te end of the code only and it works. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2018-08-29 by @gfwilliams Ahh - how are you uploading the code? I guess it's not from the IDE, but from your own Node.js app? Could you try uploading the code in the Espruino Web IDE and see if it works? It could be that if you're uploading via your own app then there may be issues with flow control which mean that the code doesn't get uploaded correctly. It can be easy enough to fix, but for now, to help track down the problem, uploading via the IDE would be worth trying. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2018-08-30 by Christof550 Yes i upload it from node.js app. Thank you |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2018-08-30 by @gfwilliams Could you try checking with the It is possible it's something to do with your computer actually cacheing the manufacturerdata. I just tried this here and your code works fine for me - albeit with huge amounts of extra counting because you don't have any debounce |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-06-20 by user67760 Where is the button on the puk.js PCB? I cannot see a button anywhere. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-06-21 by Robin Thr 2019.06.20 @user67760, for future reference. please create a new topic in it's own thread when requesting new off topic subject matter, and especially when the thread has matured. This will also assist others, should they have the exact question, as your post title will contain the exact issue they are seeking the answer to.
The button is activated as the case is compressed. Although not shown in the that image, the button is on the opposite side between D1 and D31, adjacent to the battery holder, opposite where the battery is inserted. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-08-28 by Christof550
Hi!
I have uploaded a script which set data on button click.
Here is the code :
It works fine but sometimes when i click the button.. noble.js does not scan any changed data.
However the data value has changed but not advertised. ( it means the setWatch function is working )
I think it's a problem in puck.js script updated.. maybe NRF.setAdvertising ?
It is a major problem for our application. Do you have any idea of what could cause this issue ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions