It seems AT+TXPW was wrongly sent since day 1!
This commit is contained in:
@@ -424,7 +424,7 @@ void bluetoothWakeup()
|
|||||||
bluetoothState = BLUETOOTH_STATE_NAME_SENT;
|
bluetoothState = BLUETOOTH_STATE_NAME_SENT;
|
||||||
}
|
}
|
||||||
else if (bluetoothState == BLUETOOTH_STATE_NAME_SENT && (!strncmp(line, "OK+", 3) || !strncmp(line, "Central:", 8) || !strncmp(line, "Peripheral:", 11))) {
|
else if (bluetoothState == BLUETOOTH_STATE_NAME_SENT && (!strncmp(line, "OK+", 3) || !strncmp(line, "Central:", 8) || !strncmp(line, "Peripheral:", 11))) {
|
||||||
bluetoothWriteString("AT+TXPW\r\n");
|
bluetoothWriteString("AT+TXPW0\r\n");
|
||||||
bluetoothState = BLUETOOTH_STATE_POWER_SENT;
|
bluetoothState = BLUETOOTH_STATE_POWER_SENT;
|
||||||
}
|
}
|
||||||
else if (bluetoothState == BLUETOOTH_STATE_POWER_SENT && (!strncmp(line, "Central:", 8) || !strncmp(line, "Peripheral:", 11))) {
|
else if (bluetoothState == BLUETOOTH_STATE_POWER_SENT && (!strncmp(line, "Central:", 8) || !strncmp(line, "Peripheral:", 11))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user