Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Powernet-Networking Unable to Send Complex Packets
#1
The Powernet-Networking component is only capable of sending simple packets, like the following:

command=term_connect&address_1=00000000&sender=11111111


But it is unable to send a complicated packet like the following. By unable to send, I mean it still sends it but information is lost.
command=term_message&address_1=00000000&sender=11111111&data=command=cmd&cmdval1=1&cmdval2=2

This results in a packet sent that looks like this:
command=term_message;address_1=00000000;sender=11111111;data=command=cmd;cmdval1=1;cmdval2=2;

But it should look like this (this is what it looks like when sent through SigPal):
command=term_message;address_1=00000000;sender=11111111;data=command=cmd&cmdval1=1&cmdval2=2;

Looking at the code, I think the problem is the params2list function. It needs to have a way to convert into a multidimensional list, or not use param2list at all and do it by hand. That is what is done with the sendRaw function for packet output, so why not the same for packet input?


Messages In This Thread
Powernet-Networking Unable to Send Complex Packets - by ihenn - 08-30-2016, 09:00 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)