(r Result)
| 174 | } |
| 175 | |
| 176 | func 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. |
| 191 | func (cl joinServerHTTPClient) GetAppSKey( |
no test coverage detected