wip
This commit is contained in:
@ -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{}
|
||||
|
Reference in New Issue
Block a user