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

Method DeviceFieldMasks

tools/mage/js_sdk.go:188–200  ·  view source on GitHub ↗

DeviceFieldMasks generates end device entity map.

()

Source from the content-addressed store, hash-verified

186
187// DeviceFieldMasks generates end device entity map.
188func (k JsSDK) DeviceFieldMasks() error {
189 ok, err := target.Path(
190 filepath.Join("sdk", "js", "generated", "device-entity-map.json"),
191 filepath.Join("sdk", "js", "generated", "allowed-field-mask-paths.json"),
192 )
193 if err != nil {
194 return targetError(err)
195 }
196 if !ok {
197 return nil
198 }
199 return sh.Run("node", "sdk/js/util/device-field-mask-mapper.js")
200}

Callers

nothing calls this directly

Calls 3

targetErrorFunction · 0.85
JoinMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected