Skip to content

Commit 3bf6f80

Browse files
committed
Fix codec wrappers.
Closes #4.
1 parent 02e12ab commit 3bf6f80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ func migrateApplications() {
403403
}
404404
}
405405

406+
func migrateApplicationIntegrations()
407+
406408
func migrateGateways() {
407409
log.Println("Migrating gateways")
408410

@@ -555,13 +557,13 @@ func migrateDeviceProfiles() {
555557
// v3 to v4 compatibility wrapper
556558
function decodeUplink(input) {
557559
return {
558-
object: Decode(input.fPort, input.bytes, input.variables)
560+
data: Decode(input.fPort, input.bytes, input.variables)
559561
};
560562
}
561563
562564
function encodeDownlink(input) {
563565
return {
564-
data: Encode(input.fPort, input.data, input.variables)
566+
bytes: Encode(input.fPort, input.data, input.variables)
565567
};
566568
}
567569

0 commit comments

Comments
 (0)