Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tesla Driver Driver
Very cool.
Extended the timeout to prevent driver reconnections.
//Just had to change the DoGET timeout a little longer.. from 4 seconds to 8 seconds. (8000 miliseconds)
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Thanks for the effort.
If the timeouts are that long, it might be worth thinking about using the async HTTP class so that the driver doesn't have to block for such long periods of time. It does make things a bit more complicated since you have to poll the async guy for the previous transaction to complete before starting another. And, if it supports outgoing writes, the write callback will have to block and wait before the outgoing can send. But it's not too difficult.

But that just makes it a lot quicker to shutdown. And, if the device can handle multiple operations, you could keep a couple going at a time, or one read and still allow the writes to occur.
Dean Roddey
Explorans limites defectum

Possibly Related Threads…
Thread Author Replies Views Last Post
  New to driver development - where to start? jokermac 2 131 09-22-2021, 04:01 PM
Last Post: Spot
  RainMachine Sprinkler Irrigation Controller Driver kblagron 54 13,003 06-04-2021, 01:22 PM
Last Post: Dean Roddey
  Yamaha RX-V673 IP control Driver jdmevo123 22 9,618 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 334 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 317,946 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver 5 1,828 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 581 05-20-2020, 09:04 AM
Last Post: George M
  OpenWeatherMap Weather Driver Using OneCall API kblagron 11 2,922 05-18-2020, 04:09 AM
Last Post: dlmorgan999
  JVC D-ILA Driver jokermac 34 12,104 04-13-2020, 01:28 AM
Last Post: Mark Stega
  LIFX Driver bobskie708 15 9,468 01-05-2020, 11:00 AM
Last Post: simplextech

Forum Jump:

Users browsing this thread: 1 Guest(s)