forked from xiaozhi/xiaozhi-esp32
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 += "\"carrier\":\"" + modem_.GetCarrierName() + "\",";
|
||||||
board_json += "\"csq\":\"" + std::to_string(modem_.GetCsq()) + "\",";
|
board_json += "\"csq\":\"" + std::to_string(modem_.GetCsq()) + "\",";
|
||||||
board_json += "\"imei\":\"" + modem_.GetImei() + "\",";
|
board_json += "\"imei\":\"" + modem_.GetImei() + "\",";
|
||||||
board_json += "\"iccid\":\"" + modem_.GetIccid() + "\"}";
|
board_json += "\"iccid\":\"" + modem_.GetIccid() + "\",";
|
||||||
|
board_json += "\"cereg\":" + modem_.GetRegistrationState().ToString() + "}";
|
||||||
return board_json;
|
return board_json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user