Skip to content

Commit fa2a75d

Browse files
authored
mock out modemInfo
1 parent 148c8c6 commit fa2a75d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/nodeRouter.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)