CityScope / CS_Cooper-Hewitt

meta repo/sandbox repo for keeping everything related to the Cooper Hewitt exhibition
5 stars 2 forks source link

try catching invalid json data #97

Closed yasushisakai closed 5 years ago

yasushisakai commented 5 years ago

Very rarely, if we are using UDP, there may be chances that we loose data, or data coming in a different order, or other reasons the scanner is sending data that is outside the protocol.

For example, I've seen the #74. In any case, the simulation should not stop by receiving wrong data.

Current

crashes when we have invalid data

it should

ignore, but keep on listening until we have the right value.

yasushisakai commented 5 years ago

addressed in #100, further discussions at the PR.