mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2025-05-17 15:20:29 +08:00
Add CEREG to board JSON for 4G LBS to fix weather location
This commit is contained in:
@ -112,7 +112,8 @@ std::string Ml307Board::GetBoardJson() {
|
||||
board_json += "\"carrier\":\"" + modem_.GetCarrierName() + "\",";
|
||||
board_json += "\"csq\":\"" + std::to_string(modem_.GetCsq()) + "\",";
|
||||
board_json += "\"imei\":\"" + modem_.GetImei() + "\",";
|
||||
board_json += "\"iccid\":\"" + modem_.GetIccid() + "\"}";
|
||||
board_json += "\"iccid\":\"" + modem_.GetIccid() + "\",";
|
||||
board_json += "\"cereg\":" + modem_.GetRegistrationState().ToString() + "}";
|
||||
return board_json;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user