We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792fb3e commit 14c4827Copy full SHA for 14c4827
libraries/BLE/src/BLEBeacon.cpp
@@ -54,7 +54,7 @@ void BLEBeacon::setData(String data) {
54
log_e("Unable to set the data ... length passed in was %d and expected %d", data.length(), sizeof(m_beaconData));
55
return;
56
}
57
- memcpy(&m_beaconData, data.data(), sizeof(m_beaconData));
+ memcpy(&m_beaconData, data.c_str(), sizeof(m_beaconData));
58
} // setData
59
60
void BLEBeacon::setMajor(uint16_t major) {
0 commit comments