diff options
author | dakkar <dakkar@thenautilus.net> | 2018-03-30 23:06:47 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-03-30 23:06:47 +0100 |
commit | 03fdc72d68f04e1dd403b150c4e718ac170ba41c (patch) | |
tree | f0fe9e4a1586220708f35cbcb85e842f49d6b2c1 /src/Server.cpp | |
parent | maybe it compiles? (diff) | |
download | gobbledegook-03fdc72d68f04e1dd403b150c4e718ac170ba41c.tar.gz gobbledegook-03fdc72d68f04e1dd403b150c4e718ac170ba41c.tar.bz2 gobbledegook-03fdc72d68f04e1dd403b150c4e718ac170ba41c.zip |
boh
Diffstat (limited to 'src/Server.cpp')
-rw-r--r-- | src/Server.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Server.cpp b/src/Server.cpp index 44b42cc..4651ccf 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -291,15 +291,15 @@ Server::Server(const std::string &serviceName, const std::string &advertisingNam .gattServiceEnd() // Thermo store service - .gattServiceBegin("thermo", "00000001") + .gattServiceBegin("thermo", "11111111-2222-3333-4444-000000000000") // Characteristic: String value - .gattCharacteristicBegin("room1", "00000001-1", {"read", "write"}) + .gattCharacteristicBegin("room1", "11111111-2222-3333-4444-000000000001", {"read", "write"}) // Standard characteristic "ReadValue" method call .onReadValue(CHARACTERISTIC_METHOD_CALLBACK_LAMBDA { - int8_t temperature = self.getDataValue<int8_t>("room-1", 0); + int16_t temperature = self.getDataValue<int16_t>("room-1", 0); self.methodReturnValue(pInvocation, temperature, true); }) @@ -327,12 +327,12 @@ Server::Server(const std::string &serviceName, const std::string &advertisingNam .gattCharacteristicEnd() // Characteristic: String value - .gattCharacteristicBegin("room2", "00000001-2", {"read", "write"}) + .gattCharacteristicBegin("room2", "11111111-2222-3333-4444-000000000002", {"read", "write"}) // Standard characteristic "ReadValue" method call .onReadValue(CHARACTERISTIC_METHOD_CALLBACK_LAMBDA { - int8_t temperature = self.getDataValue<int8_t>("room-2", 0); + int16_t temperature = self.getDataValue<int16_t>("room-2", 0); self.methodReturnValue(pInvocation, temperature, true); }) |