<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									SHCustomProtocol - Simhub General				            </title>
            <link>https://www.simhubdash.com/community-2/simhub-support/shcustomprotocol/</link>
            <description>All about SimHub!</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 08 Sep 2026 00:35:18 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: SHCustomProtocol</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/shcustomprotocol/#post-9242</link>
                        <pubDate>Mon, 22 Jul 2024 17:07:16 +0000</pubDate>
                        <description><![CDATA[I&#039;m diving into the world of SimHubDash, trying to figure out this whole custom protocol thing, and I&#039;m feeling a little like I&#039;m trying to build a pizza from scratch without Papa Louie&#039;s he...]]></description>
                        <content:encoded><![CDATA[<p>I'm diving into the world of SimHubDash, trying to figure out this whole custom protocol thing, and I'm feeling a little like I'm trying to build a pizza from scratch without Papa Louie's help! Seriously, if this stuff was as easy as papa's games , I'd be a master of custom protocols by now. But hey, at least there's a community forum, and maybe I can find some fellow pizza-lovers (or, you know, SimHubDash gurus) who can point me in the right direction.</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>Robertharris</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/shcustomprotocol/#post-9242</guid>
                    </item>
				                    <item>
                        <title>SHCustomProtocol</title>
                        <link>https://www.simhubdash.com/community-2/simhub-support/shcustomprotocol/#post-6829</link>
                        <pubDate>Mon, 03 Apr 2023 08:42:22 +0000</pubDate>
                        <description><![CDATA[Hi!
I just started a new project that shall control a servo. So I looked at this SHCustomProtocol topic and added some lines to SHCustomProtocol.h in order to perform some first tests. I up...]]></description>
                        <content:encoded><![CDATA[<p>Hi!</p>
<p>I just started a new project that shall control a servo. So I looked at this SHCustomProtocol topic and added some lines to SHCustomProtocol.h in order to perform some first tests. I uploaded the sketch to my Arduino Mini after applying the changes.</p>
<p>But it does not seem to work. I would expect to see a line like "Starting servo setup..." in Simhub's log but it does not appear. I can see lines like " INFO - Arduino debug message :Message received : 87;2" though, when I start a replay.</p>
<p>"C:\Program Files (x86)\SimHub\_Addons\Arduino\DisplayClientV2\SHCustomProtocol.h" now looks like:</p>
<pre contenteditable="false">#ifndef __SHCUSTOMPROTOCOL_H__
#define __SHCUSTOMPROTOCOL_H__

#include &lt;Arduino.h&gt;
#include &lt;Servo.h&gt;

class SHCustomProtocol {
private:

public:
//Servo myservo; // create servo object to control a servo

void setup() {
FlowSerialDebugPrintLn("Starting servo setup...");
//myservo.attach(9); // attaches the servo on pin 9 to the servo object
//myservo.write(0);
FlowSerialDebugPrintLn("Servo attached and reset.");
}

void read() {
String message = FlowSerialReadStringUntil('\n');
FlowSerialDebugPrintLn("Message received : " + message);

int speed = FlowSerialReadStringUntil(';').toInt();
//myservo.write(speed);


}
void loop() {
}
void idle() {
}
};

#endif</pre>
<p>What am I doing wrong?</p>
<p>Best regards<br />Donutz</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/simhub-support/">Simhub General</category>                        <dc:creator>Donutz</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/simhub-support/shcustomprotocol/#post-6829</guid>
                    </item>
							        </channel>
        </rss>
		