@@ -184,34 +184,34 @@ int BLELocalDevice::rssi()
184
184
return 127 ;
185
185
}
186
186
187
- void BLELocalDevice::setAdvertisedServiceUuid (const char * advertisedServiceUuid)
187
+ bool BLELocalDevice::setAdvertisedServiceUuid (const char * advertisedServiceUuid)
188
188
{
189
- _advertisingData.setAdvertisedServiceUuid (advertisedServiceUuid);
189
+ return _advertisingData.setAdvertisedServiceUuid (advertisedServiceUuid);
190
190
}
191
191
192
- void BLELocalDevice::setAdvertisedService (const BLEService& service)
192
+ bool BLELocalDevice::setAdvertisedService (const BLEService& service)
193
193
{
194
- setAdvertisedServiceUuid (service.uuid ());
194
+ return setAdvertisedServiceUuid (service.uuid ());
195
195
}
196
196
197
- void BLELocalDevice::setAdvertisedServiceData (uint16_t uuid, const uint8_t data[], int length)
197
+ bool BLELocalDevice::setAdvertisedServiceData (uint16_t uuid, const uint8_t data[], int length)
198
198
{
199
- _advertisingData.setAdvertisedServiceData (uuid, data, length);
199
+ return _advertisingData.setAdvertisedServiceData (uuid, data, length);
200
200
}
201
201
202
- void BLELocalDevice::setManufacturerData (const uint8_t manufacturerData[], int manufacturerDataLength)
202
+ bool BLELocalDevice::setManufacturerData (const uint8_t manufacturerData[], int manufacturerDataLength)
203
203
{
204
- _advertisingData.setManufacturerData (manufacturerData, manufacturerDataLength);
204
+ return _advertisingData.setManufacturerData (manufacturerData, manufacturerDataLength);
205
205
}
206
206
207
- void BLELocalDevice::setManufacturerData (const uint16_t companyId, const uint8_t manufacturerData[], int manufacturerDataLength)
207
+ bool BLELocalDevice::setManufacturerData (const uint16_t companyId, const uint8_t manufacturerData[], int manufacturerDataLength)
208
208
{
209
- _advertisingData.setManufacturerData (companyId, manufacturerData, manufacturerDataLength);
209
+ return _advertisingData.setManufacturerData (companyId, manufacturerData, manufacturerDataLength);
210
210
}
211
211
212
- void BLELocalDevice::setLocalName (const char *localName)
212
+ bool BLELocalDevice::setLocalName (const char *localName)
213
213
{
214
- _scanResponseData.setLocalName (localName);
214
+ return _scanResponseData.setLocalName (localName);
215
215
}
216
216
217
217
void BLELocalDevice::setAdvertisingData (BLEAdvertisingData& advertisingData)
0 commit comments