Log garmin sent messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user