Skip to content

Commit

Permalink
add:mobile.scell()增加cid
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Sep 25, 2024
1 parent 2a78f42 commit 86eed24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/mobile/luat_lib_mobile.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ log.info("cell", json.encode(mobile.scell()))
"rsrp": -107,
"tac": 30005,
"eci": 124045360,
"cid": 124045360,
"rsrq": -9,
"snr": 15,
"earfcn": 1850
Expand Down Expand Up @@ -598,7 +599,10 @@ static int l_mobile_scell_extern_info(lua_State* L) {
luat_mobile_get_service_cell_identifier(&eci);
lua_pushinteger(L, eci);
lua_setfield(L, -2, "eci");


lua_pushinteger(L, eci);
lua_setfield(L, -2, "cid");

luat_mobile_get_service_tac_or_lac(&tac);
lua_pushinteger(L, tac);
lua_setfield(L, -2, "tac");
Expand Down

0 comments on commit 86eed24

Please sign in to comment.