Skip to content

Conversation

@philippitts
Copy link
Contributor

Firmware version detection for Ganglion depends on parsing the advertised name of the device. On MacOS, the device name is always discovered as "Simblee" rather than the name intended to be advertised by the firmware. Since the device name is not determined correctly, the correct Ganglion firmware cannot be determined on MacOS.

This PR solves the above problem by reading the BLE Software Revision String characteristic. This characteristic explicitly provides the correct device firmware version.

@retiutut
Copy link
Member

Reviewed. 👍


if (found)
{
firmware = strncmp (peripheral_identified, "Ganglion 1.3", 12) == 0 ? 3 : 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants