Skip to content

Commit 5cb31a5

Browse files
committed
Add CEREG to board JSON for 4G LBS to fix weather location
1 parent 696786a commit 5cb31a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/boards/common/ml307_board.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ std::string Ml307Board::GetBoardJson() {
112112
board_json += "\"carrier\":\"" + modem_.GetCarrierName() + "\",";
113113
board_json += "\"csq\":\"" + std::to_string(modem_.GetCsq()) + "\",";
114114
board_json += "\"imei\":\"" + modem_.GetImei() + "\",";
115-
board_json += "\"iccid\":\"" + modem_.GetIccid() + "\"}";
115+
board_json += "\"iccid\":\"" + modem_.GetIccid() + "\",";
116+
board_json += "\"cereg\":" + modem_.GetRegistrationState().ToString() + "}";
116117
return board_json;
117118
}
118119

0 commit comments

Comments
 (0)