I have a question for other developers. Yesterday I was working on support for HEOS but I ran into a problem when reading the data, when looking at what might be the reason for the thrown exception, I noticed that some classes use a class already present (ASyncTCP). An example is the FritzboxTCP hardware class.
So I was wondering what the preferred method is the FritzboxTCP way or the PanasonicTV way.
It has been quite a while writing c++ code so the FritzboxTCP way might be easier for me, but does this have drawbacks?
What I hava now is located here:
https://github.com/Sneezydevil/domoticz
( If somebody spots my mistake in HandleRead let me know :p )
Don't bother looking at the HandleRead function it is not even called, not sure why.
The problem seems to be the location I call SendCommand. If I call it from HandleConnect all is ok. If I call it from Do_Work it crashes.
//Edit I decided to switch to the existing ASyncTCP class. Its Working alot better then what I was doing before.
[cpp] Preferred method for connecting to TCP
Moderators: leecollings, remb0
-
Sneezydevil
- Posts: 111
- Joined: Monday 18 January 2016 9:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest