- command void Bluetooth.setBaudrate(char * rate_factor){
- setCustomBaudrate = TRUE;
- snprintf(newBaudrate, 5, "%s", rate_factor);
+ command void Bluetooth.setRawBaudrate(char * rate_factor){
+ setRawBaudrate = TRUE;
+ snprintf(newRawBaudrate, 5, "%s", rate_factor);
+ }
+
+ /*
+ * to set the baudrate of the BT to MSP serial interface
+ * as per RovingNetworks command spec EG "SU,96" or "SU,230"
+ * SU,<rate> - Baudrate, {1200, 2400, 4800, 9600, 19.2,
+ * 38.4, 57.6, 115K, 230K, 460K, 921K },
+ * BUT, the MSP USARTS will not run at > 230K in UART mode,
+ * see MSP user guide
+ */
+ command void Bluetooth.setBaudrate(char * new_baud){
+ setBaudrate = TRUE;
+ snprintf(newBaudrate, 5, "%s", new_baud);