Skip to content

Commit

Permalink
Merge pull request #5149 from TheThingsNetwork/feature/js-interop-nsid
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking authored Jan 31, 2022
2 parents c3a3a88 + a04e1f8 commit 46457e7
Show file tree
Hide file tree
Showing 20 changed files with 627 additions and 1,183 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ For details about compatibility between different releases, see the **Commitment

### Fixed

- Device activation flow with a LoRaWAN Backend Interfaces 1.1 capable Join Server.

### Security

## [3.17.2] - 2022-01-30
Expand Down
29 changes: 28 additions & 1 deletion config/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -5750,6 +5750,15 @@
"file": "errors.go"
}
},
"error:pkg/interop:dns_lookup_not_supported": {
"translations": {
"en": "DNS lookup is not supported"
},
"description": {
"package": "pkg/interop",
"file": "client.go"
}
},
"error:pkg/interop:f_port": {
"translations": {
"en": "invalid FPort"
Expand Down Expand Up @@ -5849,6 +5858,15 @@
"file": "errors.go"
}
},
"error:pkg/interop:missing_nsid": {
"translations": {
"en": "missing NSID"
},
"description": {
"package": "pkg/interop",
"file": "client.go"
}
},
"error:pkg/interop:no_action": {
"translations": {
"en": "no action"
Expand Down Expand Up @@ -5903,6 +5921,15 @@
"file": "errors.go"
}
},
"error:pkg/interop:nsid_not_supported": {
"translations": {
"en": "NSID not supported"
},
"description": {
"package": "pkg/interop",
"file": "client.go"
}
},
"error:pkg/interop:protocol_version": {
"translations": {
"en": "invalid protocol version"
Expand Down Expand Up @@ -5950,7 +5977,7 @@
},
"error:pkg/interop:unexpected_result": {
"translations": {
"en": "unexpected result code {code}"
"en": "unexpected result code `{result_code}`"
},
"description": {
"package": "pkg/interop",
Expand Down
4 changes: 2 additions & 2 deletions pkg/component/interop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestInteropTLS(t *testing.T) {
NsJsMessageHeader: interop.NsJsMessageHeader{
MessageHeader: interop.MessageHeader{
MessageType: interop.MessageTypeJoinReq,
ProtocolVersion: "1.1",
ProtocolVersion: "1.0",
},
SenderID: interop.NetID{0x0, 0x0, 0x1},
ReceiverID: interop.EUI64{0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
Expand All @@ -169,7 +169,7 @@ func TestInteropTLS(t *testing.T) {
NsJsMessageHeader: interop.NsJsMessageHeader{
MessageHeader: interop.MessageHeader{
MessageType: interop.MessageTypeJoinReq,
ProtocolVersion: "1.1",
ProtocolVersion: "1.0",
},
SenderID: interop.NetID{0x0, 0x0, 0x2},
ReceiverID: interop.EUI64{0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
Expand Down
2 changes: 1 addition & 1 deletion pkg/identityserver/http_interop.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (srv *interopServer) HomeNSRequest(ctx context.Context, in *interop.HomeNSR
HNSAddress: dev.NetworkServerAddress,
HTenantID: conf.Network.TenantID,
}
if in.ProtocolVersion.SupportsNSID() {
if in.ProtocolVersion.RequiresNSID() {
ans.HNSID = (*interop.EUI64)(hNSID)
}
return ans, nil
Expand Down
Loading

0 comments on commit 46457e7

Please sign in to comment.