¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Simpl + String Building


 

Is there any delimiter for the incoming string? ?Is the only content of the string a character representing a hexadecimal value (0-9, a-f), and is the case always the same or mixed?





From: <Crestron@...> on behalf of "nomorefloydsound@... [Crestron]" <Crestron@...>
Reply-To: <Crestron@...>
Date: Monday, December 31, 2018 at 8:59 AM
To: <Crestron@...>
Subject: [Crestron] Simpl + String Building

?

I am looking to simply build a custom string from an incoming serial signal (SerIn$) to output to a device which requires a certain string size [9].


For instance my serial signal comes in "10B0B".? I need to send that string to the device in this form "ABC\x00\x00\x01\x0B\x0B\x0D"


What's the best method to do so in S+?? Furthermore, what happens if SerIn$ string size comes in smaller.? For instance:? "7B" or "4D2".? How could I anticipate this to create strings like:??"ABC\x00\x00\x00\x00\x7B\x0D" or?"ABC\x00\x00\x00\x04\xD2\x0D"


Any help would be appreciated.






Join [email protected] to automatically receive all group messages.