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"
"fmt"
"io"
"log"
"net/http"
"time"
)
@@ -53,6 +54,8 @@ func (gc *garminClient) sendMessage(imei, sender, msg string) error {
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)
if err != nil {
return err