From 15b4121137d9c78869d69196b84cea0a0e213bf3 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 30 Mar 2018 23:06:47 +0100 Subject: boh --- src/Server.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Server.cpp') diff --git a/src/Server.cpp b/src/Server.cpp index bc3433e..0917523 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -292,15 +292,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("room-1", 0); + int16_t temperature = self.getDataValue("room-1", 0); self.methodReturnValue(pInvocation, temperature, true); }) @@ -328,12 +328,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("room-2", 0); + int16_t temperature = self.getDataValue("room-2", 0); self.methodReturnValue(pInvocation, temperature, true); }) -- cgit v1.2.3