Skip to content

Commit 80395ef

Browse files
committed
Update for ChirpStack v4.0.3 schema changes.
1 parent baa0e65 commit 80395ef

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
@@ -998,8 +998,9 @@ function encodeDownlink(input) {
998998
tags,
999999
device_status_req_interval,
10001000
flush_queue_on_activate,
1001-
measurements
1002-
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)`,
1001+
measurements,
1002+
auto_detect_measurements
1003+
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30)`,
10031004
nsDP.ID,
10041005
intToUUID(asDP.OrganizationID),
10051006
asDP.CreatedAt,
@@ -1029,6 +1030,7 @@ function encodeDownlink(input) {
10291030
1,
10301031
true,
10311032
"{}",
1033+
true,
10321034
)
10331035
if err != nil {
10341036
panic(err)

0 commit comments

Comments
 (0)