Log garmin sent messages

This commit is contained in:
Ian Gulliver
2025-08-20 22:51:25 -07:00
parent 769064c0fa
commit c2b7443776

View File

@@ -5,6 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
"log"
"net/http" "net/http"
"time" "time"
) )
@@ -53,6 +54,8 @@ func (gc *garminClient) sendMessage(imei, sender, msg string) error {
return err return err
} }
log.Printf("sending message to garmin: %s", buf.String())
req, err := http.NewRequest("POST", "https://ipcinbound.inreachapp.com/IPC/IPCInboundApi/api/Messaging/Message", buf) req, err := http.NewRequest("POST", "https://ipcinbound.inreachapp.com/IPC/IPCInboundApi/api/Messaging/Message", buf)
if err != nil { if err != nil {
return err return err