This commit is contained in:
2025-05-27 12:05:43 +02:00
parent 9cbf5b1cde
commit 38a1d5a2c6
10 changed files with 543 additions and 87 deletions

View File

@ -2,6 +2,7 @@ package v1
import (
"context"
"encoding/json"
"strconv"
"strings"
"sync"
@ -378,4 +379,43 @@ func (o *Operations) AveragePosition(ctx context.Context) error {
return err
}
// TODO À VOIR POUR LES VERSION 1
func (o *Operations) GetNTRIPMountPoint(ctx context.Context) error {
var err error
go func() {
<-ctx.Done()
err = ctx.Err()
}()
payloadJSON, err := json.Marshal(map[string]interface{}{
"address": "crtk.net",
"port": 2101,
})
if err = o.client.Emit("task", map[string]string{"name": "get_ntrip_mountpoints", "payload": string(payloadJSON)}); err != nil {
return err
}
return err
}
// todo
func (o *Operations) SetBaseCorrections(ctx context.Context, funcs ...protocol.SetBaseCorrectionsFunc) error {
var err error
go func() {
<-ctx.Done()
err = ctx.Err()
}()
// todo
payloadJSON, err := json.Marshal(map[string]interface{}{
"address": "crtk.net",
"port": 2101,
})
if err = o.client.Emit("task", map[string]string{"name": "get_ntrip_mountpoints", "payload": string(payloadJSON)}); err != nil {
return err
}
return err
}
var _ protocol.Operations = &Operations{}