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

Missing "desc" in +WRITE message #8

Closed alexbrickwedde closed 3 weeks ago

alexbrickwedde commented 1 month ago

I got a +WRITE message with 0,1,1,,4,rrrr, which should be valid, according to the UM: image

In function StephanoI_ATBluetoothLE_ParseWrite the ATCommand_GetNextArgumentInt(&argumentsP, &(t->desc), ... doesn't find content and returns false.

alexbrickwedde commented 1 month ago
  if (argumentsP[0] == ',') {
    t->desc = 0;
    argumentsP++;
  } else {
    if (!ATCommand_GetNextArgumentInt(&argumentsP, &(t->desc), ATCOMMAND_INTFLAGS_SIZE8 | ATCOMMAND_INTFLAGS_UNSIGNED, ATCOMMAND_ARGUMENT_DELIM))
    {
      return false;
    }
  }

works for me

mah-eiSmart commented 3 weeks ago

Thank you for the feedback. This fix is correct, it will be part of the next release.