Open
Description
For to use/retrieve the temperature value from the nrf51822 SoC, it would be nice to have a:
public void requestTemperature() { this->_device->requestTemperature(); }
method for the BLEPeripheral class.
For to get notified with the value, we can create a new derived MyBLE class overloading BLEPeripheral virtual method:
void MyBLE::BLEDeviceTemperatureReceived(BLEDevice& device, float temperature);
method. An optional alternative would be to register a callback giving back (only) the temperature.