Hi,
Wanted to share my project to forum, this time I wanted to use Ruuvitag to measure temperature of pipes or pool. To do this I used onewire temperature sensor and implemented Ruuvitag Eddystone protocol in Javascript. Code attached in case someone needs it:
ruuvi_as_espruino.js.zip (1.2 KB)
Code seems to work ok, and produce URL’s like: https://ruu.vi#BFwYAMc4A, but I’m not able see my tag in Ruuvi Stations @io53 could you help?
This seems to produce the result correctly so that Ruuvistation is able catch Eddystone messages
var data_string = "ruu.vi/#" + encodedString;
var data_len = data_string.length;
//UNSAFE
var da = data_string.split('');
console.log("https://ruu.vi#"+encodedString);
NRF.setAdvertising([0x03, // Length of Service List
0x03, // Param: Service List
0xAA, 0xFE, // Eddystone ID
0x16, // Length of Service Data
0x16, // Service Data
0xAA, 0xFE, // Eddystone ID
0x10, // Frame type: URL
0xF8, // Power
0x03, // https://
da[0],da[1],da[2],da[3],da[4],da[5],da[6],da[7],da[8],da[9],da[10],da[11],da[12],da[13],da[14],da[15]],
{interval:5000});