Library 'hangs' while parsing
Created by: delcomp
My app reads a JSON string every 10 seconds. Every appr. 5 minutes or so the app 'hangs'. Unfortunately this is in the json library.
This is my debug code: Serial.println("pre-json"); JsonObject &root = jsonBuffer.parseObject(sTeslaResponse); Serial.println("post-json");
This the debug window: Response: {"response":{"charging_state":"Disconnected","charge_limit_soc":90,"charge_limit_soc_std":90,"charge_limit_soc_min":50,"charge_limit_soc_max":100,"charge_to_max_range":false,"battery_heater_on":null,"not_enough_power_to_heat":false,"max_range_charge_counter":0,"fast_charger_present":false,"fast_charger_type":"\u003Cinvalid\u003E","battery_range":135.25,"est_battery_range":100.81,"ideal_battery_range":107.51,"battery_level":43,"usable_battery_level":43,"battery_current":-0.1,"charge_energy_added":0.0,"charge_miles_added_rated":0.0,"charge_miles_added_ideal":0.0,"charger_voltage":0,"charger_pilot_current":0,"charger_actual_current":0,"charger_power":0,"time_to_full_charge":0.0,"trip_charging":false,"charge_rate":0.0,"charge_port_door_open":false,"motorized_charge_port":false,"scheduled_charging_start_time":null,"scheduled_charging_pending":false,"user_charge_enable_request":null,"charge_enable_request":true,"eu_vehicle":true,"charger_phases":null}} pre-json
As you notice 'pre-json' is output to the debug window, 'post-json' isn't.
Any idea why the program might hang in your library?