mozilla-sensorweb / sensorweb-firmware

Contains all code that runs on the SensorWeb device
Mozilla Public License 2.0
4 stars 3 forks source link

[wip] fetching json data #40

Closed fabricedesre closed 7 years ago

fabricedesre commented 7 years ago

@dhylands : WIP, we hardfault in the json parsing, and we can only build in --release mode.

Dave, can you check how long it takes for the http request? It's always 61s for me, while it's 1 or 2 seconds when the server is on the same network as the board.

fabricedesre commented 7 years ago

I forgot, this is with that value in config.rs: pub const RTC_URL: &'static str = "http://api.bewrosnes.org/";

dhylands commented 7 years ago

I see the 61s followed by a hard fault as well.

dhylands commented 7 years ago

simple-json is taking over 32K

dhylands commented 7 years ago

I had to update cc3200-rs so I think you need to checkin the updated submodule hash as well (cc3200-rs should have shown up as 'modified')

dhylands commented 7 years ago

Try creating the queue before starting the thread. I ran into issues creating a Mutex inside the thread. I haven't had a chance to figure out what the issue is.

dhylands commented 7 years ago

I'm going to guess that the 60 second delay is related to using read_string_to_end and some default timeout someplace