Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Created September 26, 2021 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeetraina/d2a1cf4eb406a86be6a392efa9983558 to your computer and use it in GitHub Desktop.
Save ajeetraina/d2a1cf4eb406a86be6a392efa9983558 to your computer and use it in GitHub Desktop.
Custom MQTT Broker
# Topic - Delivered as Msg Part 1
/hfp/v2/journey/ongoing/vp/bus/0018/00423/2159/2/Matinkylä (M)/09:32/2442201/3/60;24/16/58/67
# Body - Delivered as Msg Part 2
{
"VP": {
"desi": "159",
"dir": "2",
"oper": 6,
"veh": 423,
"tst": "2021-05-15T06:40:28.629Z",
"tsi": 1621060828,
"spd": 21.71,
"hdg": 67,
"lat": 60.156949,
"long": 24.687111,
"acc": 0,
"dl": -21,
"odo": null,
"drst": null,
"oday": "2021-05-15",
"jrn": 202,
"line": 1062,
"start": "09:32",
"loc": "GPS",
"stop": null,
"route": "2159",
"occu": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment