Please fix this for the help

Beta Testing discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
alcidesramos
Posts: 272
Joined: 17 Feb 2009 02:39
Location: Colombia
Contact:

Please fix this for the help

#1 Post by alcidesramos » 01 Jul 2011 06:33

OK in the SPI_Ethernet library in: SPI_Ethernet_sendUDP example

show:

var
IpAddr : array[4] of byte; // remote IP address
...
IpAddr[0] := 192;
IpAddr[0] := 168;
IpAddr[0] := 1;
IpAddr[0] := 1;
...
SPI_Ethernet_sendUDP(IpAddr, 10001, 10001, 'Hello', 5); // send Hello message to the above IP address, from UDP port 10001 to UDP port 10001




And not work.

this if work

var
IpAddr : array[4] of byte; // remote IP address
Var1: string[5];
...
IpAddr[0] := 192;
IpAddr[1] := 168;
IpAddr[2] := 1;
IpAddr[3] := 1;
...

var1='Hola';
SPI_Ethernet_sendUDP(IpAddr, 10001, 10001, @var1, 5); // send Hello message to the above IP address, from UDP port 10001 to UDP port 10001


ok first the ip posicion is no good.

And i cant putin the fuction a const string('Hola'), this work only with variable and pointer to this variable.


Please fix


King regard.
Attachments
Captura.JPG
Captura.JPG (76.2 KiB) Viewed 2957 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Please fix this for the help

#2 Post by filip » 01 Jul 2011 10:25

Hi,

Thank you for reporting this, we will fix it.

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 Beta Testing”