New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assigned MAC addresses get cleared when closing and reopening the app #52
Comments
Likely related to |
Closing as verified with the latest build as fixed. Opening the app immediately populates the locations, and also the previously saved MAC addresses are there for all devices. 👍 |
By the way, it might be a nice addition to the decoder to have it parse and expose the sensor's MAC addresses, if available in the advertisement data. Kind of theengs/decoder#89, but the other way around. |
I'm not quite sure what you mean by
Decoder does get the MAC address from the project, Theengs App, OpenMQTTGateway, Theengs Gateway etc. and doesn't need to send it back because of that - each project already having the "id" key and property. How would you want it to be additionally exposed? |
With the macOS and iOS Bluetooth stack, you don't have access to the MAC addresses, so the ID field of the decoder is filled only with "equivalent" UUIDs. For instance with the FlowerCare sensors, you do need the actual MAC to interact with the devices for longer than a second, it's part of its handshake process. So they put the MACs in the advertising data (https://github.com/emericg/WatchFlower/blob/master/docs/mibeacon-ble-api.md#protocol-version-0x70), so their iOS app can have the same features than their Android app. |
MAC property added in branch Needing more device decoder updates for devices known to have their MAC address in broadcast data. |
Assigned MAC addresses get cleared when closing the app and opening it again, verified on macOS and iOS 1.2
This requires any MAC addresses to be entered again for all devices to be able to get functioning published MQTT messages again.
The assigned MAC addresses need to be persistent across app restarts.
The text was updated successfully, but these errors were encountered: