BlueToe
an alternative GATT/BLE implementation
|
binds a free function as a write handler for the given characteristic More...
#include <bluetoe/characteristic_value.hpp>
binds a free function as a write handler for the given characteristic
This handler handle write to characteristics with a specific size. The size if derived from the first template paramter. A std::uint32_t for example would result in a characteristic with a size of 4 octets. If only a write handler is passed to the bluetoe::characteristic, the characteristic will be write only.
T | type of characteristic. Possible values are bool, std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t and there signed counterpart. |
F | pointer to function to handle a write request. |
If | the characteristic value could be written successfully the function should return luetoe::error_codes::success. For usefull error codes, have a look at bluetoe::error_codes::error_codes. |