WurthElektronik / WirelessConnectivity-SDK_STM32

Software development kit for Würth Elektronik eiSos wireless connectivity products (implementation for STM32 microcontrollers).
Other
7 stars 6 forks source link

StephanoI_ATBluetoothLE_ParsePeripheralDiscoverCharacteristics doesn't parse correctly #7

Closed alexbrickwedde closed 3 weeks ago

alexbrickwedde commented 1 month ago

Regarding the function "StephanoI_ATBluetoothLE_ParsePeripheralDiscoverCharacteristics", the line if (!ATCommand_GetNextArgumentString(&argumentsP, t->characteristics_type, ATCOMMAND_ARGUMENT_DELIM, sizeof(t->characteristics_type))):

sizeof(t->characteristics_type) is 5, but the content received from the Stephano-I is +BLEGATTSCHAR:"char",1,1,0x6E400002C35211E5953D0002A5D5C51B,0x0c which means "char" is 6 characters long.

The quotation character is not parsed away and later 0 == strcmp(t->characteristics_type, "char"), and probably desc too, won't match.

alexbrickwedde commented 1 month ago

And it's also missing code to read the UUID.

mah-eiSmart commented 1 month ago

BluetoothLE_ParsePeripheralDiscoverCharacteris

Please use function ATCommand_GetNextArgumentStringWithoutQuotationMarks instead of ATCommand_GetNextArgumentString. We will fix this.

mah-eiSmart commented 1 month ago

And it's also missing code to read the UUID.

Right, will de added.

mah-eiSmart commented 3 weeks ago

Will be fixed in the next release.