Skip to content

Commit

Permalink
Fix beacons parsing to json (#359)
Browse files Browse the repository at this point in the history
* add parsing

* fix parsing, working in waypoint
  • Loading branch information
KennyHuRadar committed May 22, 2024
1 parent 99c3d2e commit 9d4271a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/src/main/java/io/radar/sdk/model/RadarBeacon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ class RadarBeacon (
}
obj.putOpt(FIELD_METADATA, this.metadata)
obj.putOpt(FIELD_RSSI, this.rssi)

obj.putOpt(FIELD_GEOMETRY,
this.location?.toJson() ?: JSONObject().put(FIELD_COORDINATES, intArrayOf(0, 0))
)
return obj
}

Expand Down

0 comments on commit 9d4271a

Please sign in to comment.