Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I send a command to APCs Via mechcomp
#2
(03-07-2025, 11:50 AM)Mikeistaken Wrote: 1) when I use aa button component to send data to the pnet component, the pnet changes all the ; into &, which is normally fine, but using the apc connections they need to be separate
If I remember correctly, the way to get around the ampersand being converted was to use a URL encoded pattern for the &, which is: %26

So in the APC example on the wiki:

Code:
sender=02003c12;address_1=02006754;command=term_message;data=command=setmode&light=0&environ=0;

...becomes (by replacing all & with %26)

Code:
sender=02003c12;address_1=02006754;command=term_message;data=command=setmode%26light=0%26environ=0;
Reply


Messages In This Thread
RE: How do I send a command to APCs Via mechcomp - by Dgames_Crew - 03-07-2025, 01:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)