You are reading a single comment by @Gordon and its replies.
Click here to read the full conversation.
-
I think it works.. but the other question is how to display in the right format the brightness and temperature values into my Android app?
I tried to use the bluetooth advertisements example https://github.com/googlesamples/android-BluetoothAdvertisements
but what exactly i have to do in order to achieve my goal??
What UUID do i need to include in my Constants class?
Ok,
Put this on Puck.js:
Disconnect from Puck.js, so it starts Advertising
Run nRF Connect
Go to the
Scanner
tab, clickScan
in the top rightFind your Puck.js device, and tap on it (not on the connect button, just the text)
In the data there, you should see 'Manufacturer data', a company ID
0x0590
, and a hex code like0xCA14
.In
0xCA14
,0xCA
is the light value (between 0 and 255) and0x14
is the temperature in degrees CHopefully when that works, you can start to figure out about writing your own Android app to receive the data too.