Skip to content

Commit

Permalink
Fix codec wrappers.
Browse files Browse the repository at this point in the history
Closes #4.
  • Loading branch information
brocaar committed Sep 26, 2022
1 parent 02e12ab commit 3bf6f80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ func migrateApplications() {
}
}

func migrateApplicationIntegrations()

func migrateGateways() {
log.Println("Migrating gateways")

Expand Down Expand Up @@ -555,13 +557,13 @@ func migrateDeviceProfiles() {
// v3 to v4 compatibility wrapper
function decodeUplink(input) {
return {
object: Decode(input.fPort, input.bytes, input.variables)
data: Decode(input.fPort, input.bytes, input.variables)
};
}
function encodeDownlink(input) {
return {
data: Encode(input.fPort, input.data, input.variables)
bytes: Encode(input.fPort, input.data, input.variables)
};
}
Expand Down

0 comments on commit 3bf6f80

Please sign in to comment.