CyberCircuits / phpmodbus

http://code.google.com/p/phpmodbus
Other
0 stars 0 forks source link

Modifications I had to make. #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Jan,
You can find my modifications between the two lines in the attached files:
// ddileo start
modification....
// ddileo end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Issues:
The "local port number" used to change every time I called the function.
My server used to accept the requests from only one port.
I had to bind the socket to a specific local port ("socket_bind").
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In order to avoid Warnings from my server I had to add the following 
declaration:
$endianness = 0;
and initialization:
$rpacket = str_pad('',256);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Many thank for your work.
Have a nice 2011.

Daniele Di Leo

Original issue reported on code.google.com by CoDeSys....@gmail.com on 1 Jan 2011 at 5:59

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your issue, I will update it

Original comment by krakora....@googlemail.com on 2 May 2011 at 3:48

GoogleCodeExporter commented 9 years ago

Original comment by krakora....@googlemail.com on 9 May 2011 at 9:32