Google translate says:
I am developing a mobile application that utilizes RuuviTag. The ruuvi should be read from its ID as well as the latest data measured by it. These do not need to be stored anywhere, so use is very simple. This is the first time for me to use Bluetooth for deva.
I am using the Cordova plugin cordova-plugin-ble-central (GitHub - don/cordova-plugin-ble-central: Bluetooth Low Energy (BLE) Central plugin for Apache Cordova (aka PhoneGap)). Searching for and merging ruuvis work just fine.
When I try to read TX characteristic data, the program encounters an error: Error Domain = CBATTErrorDomain Code = 2 “Reading is not permitted.” UserInfo = {NSLocalizedDescription = Reading is not permitted.}. This is because TX lacks read access. The method I use: GitHub - don/cordova-plugin-ble-central: Bluetooth Low Energy (BLE) Central plugin for Apache Cordova (aka PhoneGap) 1. I assume that somehow this way I would get out the measurement data if it worked. Here is the data returned by the program:
<CBCharacteristic: 0x281b1dda0, UUID = 6E400003-B5A3-F393-E0A9-E50E24DCCA9E, properties = 0x10, value = (null), notifying = NO>
{“name”: “Ruuvi 25B7”, “rssi”: - 26, “id”: “1C3130FF-1AE0-CF45-0C4A-B4E93E8E26D9”, “advertising”: {“kCBAdvDataLocalName”: “Ruuvi 25B7”, “kCBAdvDataManufacturerData” : {}, “kCBAdvDataServiceUUIDs”: [“6E400001-B5A3-F393-E0A9-E50E24DCCA9E”], “kCBAdvDataIsConnectable”: 0}, “services”: [“180A”, “6E400001-B5A3-F393-E39] , “state”: “connected”, “characteristics”: [{“properties”: [“Read”], “isNotifying”: false, “characteristic”: “2A29”, “service”: “180A”}, {” properties “: [” Read “],” isNotifying “: false,” characteristic “:” 2A24 “,” service “:” 180A “}, {” properties “: [” Read “],” isNotifying “: false,” characteristic “:” 2A27 “,” service “:” 180A “}, {” properties “: [” Read “],” isNotifying “: false,” characteristic “:” 2A26 “,” service “:” 180A "}, {“properties”: [“WriteWithoutResponse”, “Write”], “isNotifying”: false, “characteristic”: “6E400002-B5A3-F393-E0A9-E50E24DCCA9E”, “service”: "6E400001-B5A3-F393-E0A9- E50E24DCCA9E “}, {” properties “: [” Notify “],” isNotifying “: false,” characteristic “:” 6E400003-B5A3-F393-E0A9-E50E24DCCA9E “,” service “:” 6E400001-B5A3-F393-E0A9- E50E24DCCA9E "}]}
What could this be about? I also welcome any kind of tips for implementing such a feature.