MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / DeleteDevice

Function DeleteDevice

pkg/joinserver/registry.go:40–45  ·  view source on GitHub ↗

DeleteDevice deletes device identified by joinEUI, devEUI from r.

(ctx context.Context, r DeviceRegistry, appID *ttnpb.ApplicationIdentifiers, devID string)

Source from the content-addressed store, hash-verified

38
39// DeleteDevice deletes device identified by joinEUI, devEUI from r.
40func DeleteDevice(ctx context.Context, r DeviceRegistry, appID *ttnpb.ApplicationIdentifiers, devID string) error {
41 _, err := r.SetByID(ctx, appID, devID, nil, func(*ttnpb.EndDevice) (*ttnpb.EndDevice, []string, error) {
42 return nil, nil, nil
43 })
44 return err
45}
46
47// KeyRegistry is a registry, containing session keys.
48type KeyRegistry interface {

Callers 2

handleDeviceRegistryTestFunction · 0.70

Calls 1

SetByIDMethod · 0.65

Tested by 1

handleDeviceRegistryTestFunction · 0.56