File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ func getNodeInfo(c *gin.Context) {
3939
4040 modem := at .New (mio , at .WithTimeout (5 * time .Second ))
4141
42- var info string = "ERR"
42+ // var info string = "ERR"
4343 var signalStrength string = "ERR"
4444 var gpsLatitude float32 = 12.517572
4545 var gpsLongitude float32 = - 69.9649462
4646
47- infoArr , err := modem .Command ("I" )
48- if err == nil {
49- info = infoArr [0 ]
50- }
47+ // infoArr, err := modem.Command("I")
48+ // if err == nil {
49+ // info = infoArr[0]
50+ // }
5151
5252 // +CSQ: 23,99
5353 signalStrengthArr , err := modem .Command ("+CSQ" )
@@ -69,7 +69,7 @@ func getNodeInfo(c *gin.Context) {
6969 }
7070
7171 c .JSON (http .StatusOK , gin.H {
72- "modemInfo" : info [ 0 ] ,
72+ "modemInfo" : "modemInfo" ,
7373 "signal" : signalStrength ,
7474 "accessoriesBattery" : - 1 , // Mock
7575 "gpsLatitude" : gpsLatitude ,
You can’t perform that action at this time.
0 commit comments