Add CEREG to board JSON for 4G LBS to fix weather location

This commit is contained in:
Terrence
2025-05-07 15:12:34 +08:00
parent 696786ad4c
commit 5cb31a5e91

View File

@ -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;
}