mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* AdvertDataHelpers: prospective changes to first byte bit-field
This commit is contained in:
parent
fa0456549a
commit
d5eb83a921
2 changed files with 7 additions and 10 deletions
|
|
@ -8,8 +8,6 @@
|
|||
memcpy(&app_data[i], &_lat, 4); i += 4;
|
||||
memcpy(&app_data[i], &_lon, 4); i += 4;
|
||||
}
|
||||
// TODO: BATTERY encoding
|
||||
// TODO: TEMPERATURE encoding
|
||||
if (_name && *_name != 0) {
|
||||
app_data[0] |= ADV_NAME_MASK;
|
||||
const char* sp = _name;
|
||||
|
|
@ -31,12 +29,6 @@
|
|||
memcpy(&_lat, &app_data[i], 4); i += 4;
|
||||
memcpy(&_lon, &app_data[i], 4); i += 4;
|
||||
}
|
||||
if (_flags & ADV_BATTERY_MASK) {
|
||||
/* TODO: somewhere to store battery volts? */ i += 2;
|
||||
}
|
||||
if (_flags & ADV_TEMPERATURE_MASK) {
|
||||
/* TODO: somewhere to store temperature? */ i += 2;
|
||||
}
|
||||
|
||||
if (app_data_len >= i) {
|
||||
int nlen = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue