Fix get versions for XBee

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2024-05-23 16:26:24 -04:00
parent 9111e6eabc
commit 66ec8ffac3

View File

@@ -413,15 +413,22 @@ class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,
}
// Gets the modem hardware version
String getModemModelImpl() {
String getModemHardwareVersion() {
return sendATGetString(GF("HV"));
}
// Gets the modem firmware version
String getModemRevisionImpl() {
String getModemFirmwareVersion() {
return sendATGetString(GF("VR"));
}
// Gets the modem combined version
String getModemRevisionImpl() {
String hw_ver = getModemHardwareVersion();
String fw_ver = getModemFirmwareVersion();
return hw_ver + String(" ") + fw_ver;
}
bool setBaudImpl(uint32_t baud) {
XBEE_COMMAND_START_DECORATOR(5, false)
bool changesMade = false;