user149221
Member since Sep 2022 • Last active Jun 2023Most recent activity
-
var ibeacon = require("ble_ibeacon"); var uuid = "2F3E43C7-8400-44B5-B385-1E6BB411A3BE"; function uuidStringToArray(uuid) { uuid = uuid.replace(/-/g, ""); // remove dashes let uuidArray = []; for (let i = 0; i < uuid.length; i += 2) { uuidArray.push(parseInt(uuid.substring(i, i + 2), 16)); } return uuidArray; } NRF.setAdvertising([ ibeacon.get({ uuid : uuidStringToArray(uuid), major : 2, minor : 1, rssi : -59 }), {name: "PuckHub"} ], {interval:200});
I'm having trouble advertising a custom name and iBeacon information on my puck.js. do you have any suggestions for me? the iBeacon information works but the name does not change...
-
I am currently working on a small project with a bangle.js 2 and my goal is to collect data during the day and when I get home I would like that when the bangle detects the espruinoHub it sends the collected data and then, with nodered I send him the confirmation of receipt for the bangle to clear the data.
I know, I think, advertising, but I have trouble understanding how to connect in uart and exchange data with espruinoHub, nodered and Bangle.js 2
Would there be someone kind to direct me to the right tutorials and reference or who could give me a sample code to help me orient myself?
Thank you
-
- 4 comments
- 696 views
-
-
I'm working on a small project and I would like to know if there is an elegant way to exchange information between a widget and a clock face. I need to run part of my program in the background, so in a widget, but I would like to display information in the clock face.
The reason is that certain processes should not be interrupted when the user presses the button to go to the setting screen.
Is there a way to declare global variables between apps and widgets.
thank you
Thank you!