Skip to content

Commit

Permalink
added AT BC command
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisVeigl committed Apr 19, 2021
1 parent 75691cb commit c4f2a6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion FabiWare/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const struct atCommandType atCommands[] PROGMEM = {
{"SR" , PARTYPE_NONE }, {"ER" , PARTYPE_NONE },
{"TS" , PARTYPE_UINT }, {"TP" , PARTYPE_UINT }, {"MA" , PARTYPE_STRING},{"WA" , PARTYPE_UINT },
{"TT" , PARTYPE_UINT }, {"AP" , PARTYPE_UINT }, {"AR" , PARTYPE_UINT}, {"AI" , PARTYPE_UINT },
{"FR" , PARTYPE_NONE }, {"BT" , PARTYPE_UINT }
{"FR" , PARTYPE_NONE }, {"BT" , PARTYPE_UINT }, {"BC" , PARTYPE_STRING}
};

void printCurrentSlot()
Expand Down Expand Up @@ -375,5 +375,9 @@ void performCommand (uint8_t cmd, int16_t parNum, char * parString, int8_t perio
case CMD_BT:
settings.bt = parNum;
break;
case CMD_BC:
Serial1.write(parString);
Serial1.write('\n'); //terminate command
break;
}
}
3 changes: 2 additions & 1 deletion FabiWare/commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
AT FR report free EEPROM bytes in % (starting with "FREE:")
AT BT <uint> set bluetooth mode, 1=USB only, 2=BT only, 3=both(default)
(e.g. AT BT 2 -> send HID commands only via BT if BT-daughter board is available)
AT BC <string> sends parameter to external UART (mostly ESP32 Bluetooth Addon)
supported key identifiers for key press command (AT KP):
Expand Down Expand Up @@ -103,7 +104,7 @@ enum atCommands {
CMD_ID, CMD_BM, CMD_CL, CMD_CR, CMD_CM, CMD_CD, CMD_PL, CMD_PR, CMD_PM, CMD_RL, CMD_RR, CMD_RM,
CMD_WU, CMD_WD, CMD_WS, CMD_MX, CMD_MY, CMD_KW, CMD_KP, CMD_KR, CMD_RA, CMD_SA, CMD_LO, CMD_LA,
CMD_LI, CMD_NE, CMD_DE, CMD_NC, CMD_SR, CMD_ER, CMD_TS, CMD_TP, CMD_MA, CMD_WA,
CMD_TT, CMD_AP, CMD_AR, CMD_AI, CMD_FR, CMD_BT, NUM_COMMANDS
CMD_TT, CMD_AP, CMD_AR, CMD_AI, CMD_FR, CMD_BT, CMD_BC, NUM_COMMANDS
};

#endif

0 comments on commit c4f2a6e

Please sign in to comment.