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

Function parseResult

pkg/interop/client.go:176–188  ·  view source on GitHub ↗
(r Result)

Source from the content-addressed store, hash-verified

174}
175
176func parseResult(r Result) error {
177 if r.ResultCode == ResultSuccess {
178 return nil
179 }
180 err, ok := resultErrors[r.ResultCode]
181 if ok {
182 return err.WithAttributes("result_description", r.Description)
183 }
184 return errUnexpectedResult.WithAttributes(
185 "result_code", r.ResultCode,
186 "result_description", r.Description,
187 )
188}
189
190// GetAppSKey performs AppSKey request according to LoRaWAN Backend Interfaces specification.
191func (cl joinServerHTTPClient) GetAppSKey(

Callers 2

GetAppSKeyMethod · 0.85
HandleJoinRequestMethod · 0.85

Calls 1

WithAttributesMethod · 0.45

Tested by

no test coverage detected