Skip to content

Commit

Permalink
as string
Browse files Browse the repository at this point in the history
  • Loading branch information
joshspicer committed Mar 25, 2023
1 parent 4a5313c commit 90d1988
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/nodeRouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"log"
"net/http"
"strings"
"time"

"github.com/gin-gonic/gin"
Expand Down Expand Up @@ -57,7 +58,7 @@ func getNodeInfo(c *gin.Context) {

c.JSON(http.StatusOK, gin.H{
"message": "Hello World",
"modemInfo": info,
"signal": signalStrength,
"modemInfo": strings.Join(info, " "),
"signal": strings.Join(signalStrength, " "),
})
}

0 comments on commit 90d1988

Please sign in to comment.