Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tesla Driver Driver
#11
Very cool.
Reply
#12
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
Reply
#13
Thanks for the effort.
Reply
#14
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
Reply
#15
Driver version 1.5 released.
Fixed a few bugs with Preconditioning the car button. How lazy do I have to be to heat up the car and turn on seat heaters when the car is parked inside the garage  Smile.
_______________
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  RainMachine Sprinkler Irrigation Controller Driver kblagron 60 20,241 07-17-2022, 08:36 PM
Last Post: kblagron
  SmartThings API V1 driver kfly 5 802 02-22-2022, 07:55 AM
Last Post: kfly
  Help on editing existing Driver Spot 5 681 02-03-2022, 06:50 PM
Last Post: kblagron
  New to driver development - where to start? jokermac 2 691 09-22-2021, 04:01 PM
Last Post: Spot
  Yamaha RX-V673 IP control Driver jdmevo123 22 11,522 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 707 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 345,785 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 2,742 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 964 05-20-2020, 09:04 AM
Last Post: George M
  OpenWeatherMap Weather Driver Using OneCall API kblagron 11 4,525 05-18-2020, 04:09 AM
Last Post: dlmorgan999

Forum Jump:


Users browsing this thread: 1 Guest(s)