Documentation ¶
Index ¶
- func Client() nc.NetworkControllerServiceClient
- func SetClient(c nc.NetworkControllerServiceClient)
- type NopNetworkControllerClient
- func (n *NopNetworkControllerClient) HandleDownlinkMetaData(ctx context.Context, in *nc.HandleDownlinkMetaDataRequest, ...) (*empty.Empty, error)
- func (n *NopNetworkControllerClient) HandleRejectedUplinkFrameSet(ctx context.Context, in *nc.HandleRejectedUplinkFrameSetRequest, ...) (*empty.Empty, error)
- func (n *NopNetworkControllerClient) HandleUplinkMACCommand(ctx context.Context, in *nc.HandleUplinkMACCommandRequest, ...) (*empty.Empty, error)
- func (n *NopNetworkControllerClient) HandleUplinkMetaData(ctx context.Context, in *nc.HandleUplinkMetaDataRequest, ...) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetClient ¶
func SetClient(c nc.NetworkControllerServiceClient)
SetClient sets up the given controller client.
Types ¶
type NopNetworkControllerClient ¶
type NopNetworkControllerClient struct{}
NopNetworkControllerClient is a dummy network-controller client which is used when no network-controller is present / configured.
func (*NopNetworkControllerClient) HandleDownlinkMetaData ¶
func (n *NopNetworkControllerClient) HandleDownlinkMetaData(ctx context.Context, in *nc.HandleDownlinkMetaDataRequest, opts ...grpc.CallOption) (*empty.Empty, error)
HandleUplinkMACCommand handles an uplink mac-command. This method will only be called in case the mac-command request was enqueued throught the API or when the CID is >= 0x80 (proprietary mac-command range).
func (*NopNetworkControllerClient) HandleRejectedUplinkFrameSet ¶
func (n *NopNetworkControllerClient) HandleRejectedUplinkFrameSet(ctx context.Context, in *nc.HandleRejectedUplinkFrameSetRequest, opts ...grpc.CallOption) (*empty.Empty, error)
HandleRejectedUplinkFrameSet handles a rejected uplink. And uplink can be rejected in the case the device has not (yet) been provisioned, because of invalid frame-counter, MIC, ...
func (*NopNetworkControllerClient) HandleUplinkMACCommand ¶
func (n *NopNetworkControllerClient) HandleUplinkMACCommand(ctx context.Context, in *nc.HandleUplinkMACCommandRequest, opts ...grpc.CallOption) (*empty.Empty, error)
HandleUplinkMACCommand handles an uplink mac-command. This method will only be called in case the mac-command request was enqueued throught the API or when the CID is >= 0x80 (proprietary mac-command range).
func (*NopNetworkControllerClient) HandleUplinkMetaData ¶
func (n *NopNetworkControllerClient) HandleUplinkMetaData(ctx context.Context, in *nc.HandleUplinkMetaDataRequest, opts ...grpc.CallOption) (*empty.Empty, error)
HandleUplinkMetaData handles uplink meta-rata.