<root>
<document schema='101' license='50,Dev User,XDKHX7' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1633%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='1000' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='e1bb4679-58ef-40dc-8d09-306ada46f7bf' vstate='40' vmin='2' vmaj='1' srcleaf='WLAN_ESP8266.fcfx' visiblename='WLAN (EB094, ESP8266)' description='Wireless LAN component designed to work with the ESP8266 module.
Provides a very simple interface to allow webpages to be hosted from hardware or simulation.
Also available in the form of the EB094 E-block.' category='Wireless' catenable='1' author='Matrix Ltd.' manuname='' manucode='' sysinfo='17830763' keywords='' dynamic='1' iconpath='..\icons\components\RF_ISM_icon.png' />
		<component class_type='root' codename='WLAN_ESP8266' x='10' y='0' z='-1' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources >
				<file name='RF_ISM.png' source='..\icons\Large Comms Icons\RF_ISM.png' />
			</resources>
			<properties >
				<property name='WIFI Properties' folder='property_1' hidden='0' >
					<property name='Receive Buffer Size' target='RxBufferSize' typeid='21' hidden='0' locked='0' info='Buffer used to store incoming data ready for processing.
Default 128 Bytes.' />
					<property name='Scan Buffer Size' target='ScanBufferSize' typeid='21' hidden='0' locked='0' info='Buffer used to hold SSID names when performing a SSID network scan.
Default 100 Bytes.' />
					<property name='Reset Mode' target='ResetMode' typeid='16' hidden='0' locked='0' info='The initialise automatically resets the WIFI module before establishing communications.
Software reset uses an AT command to preform the reset
Hardware reset uses an extra I/O pin to toggle the signal to the reset pin on the module.' filter='000Software
001Hardware' />
				</property>
				<property name='Connections' hidden='0' >
					<property name='UART' target='UART_CHANNEL' typeid='16' hidden='0' locked='0' info='WLAN module UART channel selection' filter='001Channel 1
' />
					<property name='BAUD' target='BAUD' typeid='16' hidden='0' locked='0' info='' filter='000Custom
0011200
0022400
0034800
0049600
00519200
00631250
00738400
00857600
009115200' />
					<property name='Reset' target='RESET' typeid='5' hidden='0' locked='0' info='WLAN module reset pin connection' />
					<property name='Tx' target='TX' typeid='5' hidden='0' locked='1' info='WLAN module UART data transmit pin. Connects to receive pin on WLAN module.' />
					<property name='Rx' target='RX' typeid='5' hidden='0' locked='1' info='WLAN module UART data receive pin. Connects to transmit pin on WLAN module.' />
					<property name='TX Remap' target='TXRemap' typeid='16' hidden='1' locked='0' info='' />
					<property name='RX Remap' target='RXRemap' typeid='16' hidden='1' locked='0' info='' />
				</property>
				<property name='HTML Source' hidden='0' >
					<property name='Max Web Pages' target='PAGES' typeid='16' hidden='0' locked='0' info='Maximum number of individual webpages we can serve up with the component.' filter='000None
0011
0022
0033
0044' />
					<property name='Web Page Timeout' target='TIMEOUT' typeid='21' hidden='0' locked='0' info='Number of cycles to try and send / receive a webpage before timing out.' />
					<property name='Name Page 1' target='name1' typeid='10' hidden='0' locked='0' info='HTML name of webpage 1' />
					<property name='HTML Page 1' target='html1' typeid='11' hidden='0' locked='0' info='HTML content for webpage 1' />
					<property name='Name Page 2' target='name2' typeid='10' hidden='0' locked='0' info='HTML name of webpage 2' />
					<property name='HTML Page 2' target='html2' typeid='11' hidden='0' locked='0' info='HTML content for webpage 2' />
					<property name='Name Page 3' target='name3' typeid='10' hidden='0' locked='0' info='HTML name of webpage 3' />
					<property name='HTML Page 3' target='html3' typeid='11' hidden='0' locked='0' info='HTML content for webpage 3
' />
					<property name='Name Page 4' target='name4' typeid='10' hidden='0' locked='0' info='HTML name of webpage 4' />
					<property name='HTML Page 4' target='html4' typeid='11' hidden='0' locked='0' info='HTML content for webpage 4' />
				</property>
				<property name='WLAN_USE_PAGE1' target='WLAN_USE_PAGE1' typeid='7' hidden='1' locked='0' info='' />
				<property name='WLAN_USE_PAGE2' target='WLAN_USE_PAGE2' typeid='7' hidden='1' locked='0' info='' />
				<property name='WLAN_USE_PAGE3' target='WLAN_USE_PAGE3' typeid='7' hidden='1' locked='0' info='' />
				<property name='WLAN_USE_PAGE4' target='WLAN_USE_PAGE4' typeid='7' hidden='1' locked='0' info='' />
				<property name='Simulation' folder='property_2' hidden='0' >
					<property name='Injector' target='Injector' typeid='16' hidden='0' locked='0' info='' />
					<property name='Label' target='label' typeid='10' hidden='0' locked='0' info='Text label used to help identify the component on the panel.' />
				</property>
			</properties>
			<values >
				<value target='RxBufferSize' data='128' />
				<value target='ScanBufferSize' data='100' />
				<value target='ResetMode' data='000' />
				<value target='UART_CHANNEL' data='001' />
				<value target='BAUD' data='009' />
				<value target='RESET' data='$PORTC.1' />
				<value target='TX' data='$PORTC.6' />
				<value target='RX' data='$PORTC.7' />
				<value target='TXRemap' data='' />
				<value target='RXRemap' data='' />
				<value target='PAGES' data='004' />
				<value target='TIMEOUT' data='4' />
				<value target='name1' data='index.htm' />
				<value target='html1' data='&lt;html&gt;
Main Index Page
&lt;/html&gt;' />
				<value target='name2' data='page2.htm' />
				<value target='html2' data='&lt;html&gt;
Page 2
&lt;/html&gt;' />
				<value target='name3' data='page3.htm' />
				<value target='html3' data='&lt;html&gt;
Page 3
&lt;/html&gt;' />
				<value target='name4' data='page4.htm' />
				<value target='html4' data='&lt;html&gt;
Page 4
&lt;/html&gt;' />
				<value target='WLAN_USE_PAGE1' data='1' />
				<value target='WLAN_USE_PAGE2' data='1' />
				<value target='WLAN_USE_PAGE3' data='1' />
				<value target='WLAN_USE_PAGE4' data='1' />
				<value target='Injector' data='000' />
				<value target='label' data='WLAN' />
			</values>
			<events >
				<event class='Connection' event='ChipChange' target='Ev_ChipChange' />
				<event class='Compile' event='AddHeader' target='Ev_AddHeader' />
				<event class='Compile' event='AddInterrupts' target='Ev_AddInterrupts' />
				<event class='Components' event='Initialise' target='Ev_Initialise' />
				<event class='Compile' event='GetVarSize' target='Ev_GetVarSize' />
				<event class='Components' event='Property' target='Ev_Property' />
			</events>
			<apis >
				<api name='DisconnectFromSSID' alt='DisconnectFromSSID' type='1' proto='1' />
				<api name='SendString' alt='SendString' type='1' proto='1' />
				<api name='ClientConnect' alt='ClientConnect' type='1' proto='1' />
				<api name='ControlTCPServer' alt='ControlTCPServer' type='1' proto='1' />
				<api name='GetFirmwareVersion' alt='GetFirmwareVersion' type='1' proto='1' />
				<api name='CheckForPageRequests' alt='CheckForPageRequests' type='1' proto='1' />
				<api name='ClientSendRequest' alt='ClientSendRequest' type='1' proto='1' />
				<api name='ReadSSIDFromScan' alt='ReadSSIDFromScan' type='1' proto='1' />
				<api name='CreateAccessPoint' alt='CreateAccessPoint' type='1' proto='1' />
				<api name='SetOutValue' alt='SetOutValue' type='1' proto='1' />
				<api name='Send_Embedded_HTML_Page4' alt='$(type)_$(module)__$(macro)' type='4' proto='1' />
				<api name='ReadSignalStrengthFromScan' alt='ReadSignalStrengthFromScan' type='1' proto='1' />
				<api name='Send_Embedded_HTML_Page3' alt='$(type)_$(module)__$(macro)' type='4' proto='1' />
				<api name='Send_Embedded_HTML_Page2' alt='$(type)_$(module)__$(macro)' type='4' proto='1' />
				<api name='Send_Embedded_HTML_Page1' alt='$(type)_$(module)__$(macro)' type='4' proto='1' />
				<api name='ReadEncryptionModeFromScan' alt='ReadEncryptionModeFromScan' type='1' proto='1' />
				<api name='GetByteWithTimeout' alt='GetByteWithTimeout' type='1' proto='1' />
				<api name='GetInValue' alt='GetInValue' type='1' proto='1' />
				<api name='ConnectToSSID' alt='ConnectToSSID' type='1' proto='1' />
				<api name='ScanForSSID' alt='ScanForSSID' type='1' proto='1' />
				<api name='Initialise' alt='Initialise' type='1' proto='1' />
				<api name='CheckTCPServerIP' alt='CheckTCPServerIP' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_STX_ERR' type='s16' description='' isconst='1' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RxBuffer' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_FAIL_ERR' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_OK' type='s16' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_TOUT' type='s16' description='' isconst='1' isinit='1' usrinit='255' setinit='255' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RxCount' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Out4' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Out3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Out2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Out1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScanSigStrength' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Out0' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_ETX_ERR' type='s16' description='' isconst='1' isinit='1' usrinit='5' setinit='5' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_SERIAL' type='s16' description='' isconst='1' isinit='1' usrinit='6' setinit='6' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScanNames' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_CMD_ERR' type='s16' description='' isconst='1' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CmdState' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScanEncModes' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='In2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='In1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MAX_OUT_SUBS' type='s16' description='' isconst='1' isinit='1' usrinit='5' setinit='5' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MX_WLAN_CMD_PARAM_ERR' type='s16' description='' isconst='1' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='In0' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='InitialiseSim' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ret' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Init the In and Out Vars' >
							<exp exp='Out0[0] = 0' />
							<exp exp='Out1[0] = 0' />
							<exp exp='Out2[0] = 0' />
							<exp exp='Out3[0] = 0' />
							<exp exp='Out4[0] = 0' />
							<exp exp='In0[0] = 0' />
							<exp exp='In1[0] = 0' />
							<exp exp='In2[0] = 0' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='Initialise' />
						<command class_type='sim' title='Call Component Macro' disable='1' component='TCP_Base1' macro='CreateTCPSocket' >
							<return exp='.ret' />
							<argument exp='0' />
							<argument exp='80 &gt;&gt; 8' />
							<argument exp='80 &amp; 0xff' />
						</command>
						<command class_type='sim' title='Simulation' disable='1' macro='Debug.PrintLn' >
							<argument exp='&quot;CreateTCPSocket() returned &quot; + ToString$ (.ret)' />
						</command>
						<command class_type='decision' title='Decision' disable='1' exp='.ret' swap='0' >
							<flowline >
								<command class_type='sim' title='Call Component Macro' disable='1' component='TCP_Base1' macro='TCPListen' >
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' disable='1' macro='Debug.PrintLn' >
									<argument exp='&quot;CreateTCPListen()&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendString' description='Sends the given Text. 
Appends a CR to the end of the string it SendCR is greater than 0.' >
						<param name='Text' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='SendCR' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Idx = 0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.Text[.Idx]' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='cal_uart1' macro='Send' >
									<argument exp='.Text[.Idx]' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Idx = .Idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='.SendCR' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='cal_uart1' macro='Send' >
									<argument exp='0x0d' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendStringSim' description='' >
						<param name='text' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='crlf' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Simulation' component='dash_IO_flasher1' macro='FlashTx' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendCommandSim' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='command' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<command class_type='sim' title='Simulation' component='dash_IO_flasher1' macro='FlashTx' />
					</flowline>
				</macro>
				<macro >
					<flowline name='pvt_GetUARTChannels' description='' >
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='calculation' title='Get the available UART channels' >
							<exp exp='.temp = cal_uart1 :: GetList (&quot;CHANNEL&quot;)' />
							<exp exp='.temp = pvt_RemoveListOpt (.temp,&quot;Software&quot;)' />
							<exp exp='::Component .Property .SetFilter (this,&quot;UART_CHANNEL&quot;, .temp)' />
						</command>
						<command class_type='calculation' title='Get the available BAUD rates' >
							<exp exp='.temp = cal_uart1 :: GetList (&quot;BAUD_LIST&quot;)' />
							<exp exp='::Component .Property .SetFilter (this,&quot;BAUD&quot;, .temp)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DisconnectFromSSID' description='Disconnects from the current SSID. 
Returns 1 if the command was accepted and returned an &quot;OK&quot;' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='100' />
						</local>
						<command class_type='calculation' title='Assemble Leave SSID Command' >
							<exp exp='.Command = &quot;AT+CWQAP&quot;' />
						</command>
						<command class_type='call' title='Send Command' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;OK&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ClientConnect' description='Creates a TCP or UDP connection to a remote server.' >
						<param name='Type' type='u8' description='0 = TCP, 1 = UDP' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='IPAddress' type='T8*' description='e.g. &quot;192.168.1.20&quot;' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Port' type='u16' description='Remote port number to connect to, HTTP comms = Port 80' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='50' />
						</local>
						<local name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='done' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.TempStr = STRING .Port' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Command = &quot;AT+CIPSTART=&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='.Type = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Command = .Command + &quot;\&quot;UDP\&quot;,&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Command = .Command + &quot;\&quot;TCP\&quot;,&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Command = .Command + &quot;\&quot;&quot;' />
							<exp exp='.Command = .Command + .IPAddress' />
							<exp exp='.Command = .Command + &quot;\&quot;,&quot;' />
							<exp exp='.Command = .Command + .TempStr' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.done = 0 &amp;&amp; .count &lt; 20' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='CheckForData' >
									<return exp='.done' />
									<argument exp='&quot;Linked&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.count = .count + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ControlTCPServer' description='Allows a TCP web page server to be switched on and off on the selected port.
Returns 1 if the command was completed correctly.' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Enable' type='u8' description='0 = Stop Server, 1 = Start Server' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Port' type='u16' description='Server port to listen for incoming TCP/IP data requests' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='50' />
						</local>
						<local name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='calculation' title='Convert port number to string' >
							<exp exp='.TempStr = STRING .Port' />
						</command>
						<command class_type='calculation' title='Initialise command string' >
							<exp exp='.Command = &quot;AT+CIPSERVER=&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='.Enable = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Start Server' >
									<exp exp='.Command = .Command + &quot;1,&quot;' />
								</command>
								<command class_type='call' title='Must be Multi Connection for server to work' macro='SendString' >
									<argument exp='&quot;AT+CIPMUX=1&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Stop Server' >
									<exp exp='.Command = .Command + &quot;0,&quot;' />
								</command>
								<command class_type='call' title='Revert to Single Connection' macro='SendString' >
									<argument exp='&quot;AT+CIPMUX=0&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Check for startup &quot;ready&quot;' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;OK&quot;' />
						</command>
						<command class_type='calculation' title='Add server port to command' >
							<exp exp='.Command = .Command + .TempStr' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='call' title='Call Macro' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;OK&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendEmbeddedPageSim' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='name' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<command class_type='sim' title='Simulation' component='dash_IO_flasher1' macro='FlashTx' />
						<command class_type='decision' title='Decision' exp='Length$ (.name) = 0' swap='1' >
							<flowline >
								<command class_type='decision' title='Decision' exp='Compare$ (.name,name1,1) = 0' swap='1' >
									<flowline >
										<command class_type='decision' title='Decision' exp='Compare$ (.name,name2,1) = 0' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' exp='Compare$ (.name,name3,1) = 0' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' exp='Compare$ (.name,name4,1) = 0' swap='1' >
															<flowline >
																<command class_type='comment' title='' comment='Not Found' textarea='12,0,12,0' />
																<command class_type='call' title='Call Macro' macro='SendHTMLSim' >
																	<argument exp='&quot;&quot;' />
																</command>
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.Return = 0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='call' title='Call Macro' macro='SendHTMLSim' >
																	<argument exp='html4' />
																</command>
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.Return = 4' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Macro' macro='SendHTMLSim' >
															<argument exp='html3' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.Return = 3' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Macro' macro='SendHTMLSim' >
													<argument exp='html2' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.Return = 2' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' macro='SendHTMLSim' >
											<argument exp='html1' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Return = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Macro' macro='SendHTMLSim' >
									<argument exp='html1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_AddInterrupts' description='Sent to a component to allow dynamic amendment of the interrupts for a component' >
						<return name='Return' type='u32' description='Non-zero to block code insertion' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='HandlerCode' type='T8*' description='Text to amend for all component interrupts' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='ISR_Macro' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='UART_Str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='Simulation' macro='Expand.MacroBody' >
							<return exp='.ISR_Macro' />
							<argument exp='&quot;ISR_UART&quot;' />
							<argument exp='this' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.UART_Str = &quot;MX_UART_INT_CH&quot; + STRING UART_CHANNEL + &quot;_FUNC\n\n&quot;' />
							<exp exp='.UART_Str = .UART_Str + &quot;MX_UINT8 FCL_RX;\n\n&quot;' />
							<exp exp='.UART_Str = .UART_Str + &quot;if (MX_UART_INT_CH&quot; + STRING UART_CHANNEL + &quot;_DET)\n{\n\n&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.ISR_Macro = .UART_Str + .ISR_Macro' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.ISR_Macro = .ISR_Macro + &quot;MX_UART_INT_CH&quot; + STRING UART_CHANNEL + &quot;_CLR;&quot;' />
							<exp exp='.ISR_Macro = .ISR_Macro + &quot;\n\n}\n\nMX_UART_INT_FUNC_END\n&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.HandlerCode = .HandlerCode + &quot;\n\n&quot; + .ISR_Macro' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendCommand' description='Sends the given command and returns the reply status.
(See GetReply for return values)' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Command' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='Attempts' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='WaitReply' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Timeout' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 255' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='(.Return) AND (.Attempts &lt; 30)' >
							<flowline >
								<command class_type='decision' title='Decision' exp='CmdState = 0' swap='1' >
									<flowline >
										<command class_type='delay' title='Delay' exp='1' type='1' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='CmdState = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='CmdState = 1' />
									<exp exp='RxCount = 0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='cal_uart1' macro='Send' >
									<argument exp='&apos;&lt;&apos;' />
								</command>
								<command class_type='call' title='Call Macro' macro='SendString' >
									<argument exp='.Command' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='cal_uart1' macro='Send' >
									<argument exp='&apos;&gt;&apos;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Timeout = 0' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='(CmdState = 1) AND (.Timeout &lt; 20000)' >
									<flowline >
										<command class_type='delay' title='Delay' exp='40' type='0' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Timeout = .Timeout + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' exp='.Timeout = 20000' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='CmdState = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Macro' macro='GetReply' >
									<return exp='.Return' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Attempts = .Attempts + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IsAlphaNumeric' description='' >
						<return name='Return' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='c' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='(.c &lt; 40) OR (.c = &apos;=&apos;) OR (.c = &apos;?&apos;) OR (.c = &apos;&amp;&apos;)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetFirmwareVersion' description='Collects the firmware version from the ESP8266 module and returns it as a string.' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</return>
						<local name='done' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='retval' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='call' title='Send Command - Firmware Version' macro='SendString' >
							<argument exp='&quot;AT+GMR&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='WaitForEcho' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.retval = 1' />
						</command>
						<command class_type='call' title='WaitForEcho' macro='GetByteWithTimeout' >
							<return exp='.retval' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.retval != 13' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return[.idx] = .retval' />
								</command>
								<command class_type='call' title='WaitForEcho' macro='GetByteWithTimeout' >
									<return exp='.retval' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return[.idx] = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadConnectionStatusSim' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Simulation' component='dash_IO_flasher1' macro='FlashRx' />
					</flowline>
				</macro>
				<macro >
					<flowline name='CheckForPageRequests' description='To be called periodically. Returns non-zero if a request has been processed' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='page' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='name' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='in' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.in' />
							<argument exp='&quot;GET /&quot;' />
						</command>
						<command class_type='decision' title='Page Request has been received?' exp='.in = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='default to page 1' >
									<exp exp='.page = 1' />
								</command>
								<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
									<return exp='.in' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.in != &apos; &apos; &amp;&amp; .in != &apos;?&apos;' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.name[.idx] = .in' />
											<exp exp='.idx = .idx + 1' />
										</command>
										<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
											<return exp='.in' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Terminate name string' >
									<exp exp='.name[.idx] = 0' />
								</command>
								<command class_type='decision' title='Decision' exp='WLAN_USE_PAGE1' swap='0' >
									<flowline >
										<command class_type='decision' title='' exp='Compare$ (name1, .name,1) = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.page = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='WLAN_USE_PAGE2' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='Compare$ (name2, .name,1) = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.page = 2' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='WLAN_USE_PAGE3' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='Compare$ (name3, .name,1) = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.page = 3' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='WLAN_USE_PAGE4' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='Compare$ (name4, .name,1) = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.page = 4' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Delete the In parameters' >
									<exp exp='In0 = &quot;&quot;' />
									<exp exp='In1 = &quot;&quot;' />
									<exp exp='In2 = &quot;&quot;' />
								</command>
								<command class_type='decision' title='Any new ones?' exp='RxBuffer[.in] = &apos;?&apos;' swap='0' >
									<flowline >
										<command class_type='call' title='Process the In parameters' macro='ParseParams' />
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' exp='200' type='1' />
								<command class_type='call' title='Call Macro' disable='1' macro='ServerSendHTML' >
									<argument exp='&quot;HTTP/1.0 200 OK\r\n&quot;' />
								</command>
								<command class_type='comment' title='' comment='we could send the content type here, such as..
&quot;Content-type: text/html&quot;
but we would need to be more specific for other media types' textarea='12,0,12,0' disable='1' />
								<command class_type='call' title='Call Macro' disable='1' macro='ServerSendHTML' >
									<argument exp='&quot;&lt;!DOCTYPE HTML&gt;&quot;' />
								</command>
								<command class_type='comment' title='' comment='we previously interted the doc type here, e.g...
&quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.0 Transitional//EN\&quot;&gt;&quot;
could be replaced with simply...
&quot;&lt;!DOCTYPE HTML&gt;&quot;
but again that&apos;s not helpful if we are not sending html
' textarea='12,0,12,0' disable='1' />
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.page' >
									<case >
										<flowline >
											<command class_type='call' title='Call Macro' macro='ServerSendHTML' >
												<argument exp='&quot;404 - Page Not Found.&quot;' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='call' title='Call Macro' macro='Send_Embedded_HTML_Page1' />
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='call' title='Call Macro' macro='Send_Embedded_HTML_Page2' />
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='call' title='Call Macro' macro='Send_Embedded_HTML_Page3' />
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='call' title='Call Macro' macro='Send_Embedded_HTML_Page4' />
										</flowline>
									</case>
								</command>
								<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
								<command class_type='call' title='Call Macro' macro='SendString' >
									<argument exp='&quot;AT+CIPCLOSE=0&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Macro' macro='CheckForData' >
									<argument exp='&quot;OK&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = .page' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Initialise' description='Initialisation routine for the component once the component is linked to its parent' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='filepath' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='call' title='Call Macro' macro='pvt_GetUARTChannels' />
						<command class_type='sim' title='Simulation' macro='File.AbsPath' >
							<return exp='.filepath' />
							<argument exp='&quot;this:RF_ISM.png&quot;' />
							<argument exp='this' />
						</command>
						<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
							<argument exp='dash_IO_flasher1' />
							<argument exp='&quot;icon_image&quot;' />
							<argument exp='.filepath' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CheckForData' description='Checks to see if the data string is received by the RX interrupt.
Waits approx 1 second before returning not found status.
0 = not found
1 = found' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='DataString' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='length' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='CircIdx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='done' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='rxdata' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='started' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='TimeOut' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Default - String Not Detected' >
							<exp exp='.Return = 0' />
						</command>
						<command class_type='calculation' title='Work out length of string' >
							<exp exp='.length = Length$ (.DataString)' />
						</command>
						<command class_type='loop' title='Loop while waiting for string' type='0' exp='.done = 0 &amp;&amp; .TimeOut &lt; 20000' >
							<flowline >
								<command class_type='call' title='Check number of received bytes' component='CircularBuffer1' macro='GetNumberBytes' >
									<return exp='.CircIdx' />
								</command>
								<command class_type='decision' title='Decision' exp='.CircIdx &gt; 0' swap='0' >
									<flowline >
										<command class_type='call' title='Read byte from rx buffer' component='CircularBuffer1' macro='GetByte' >
											<return exp='.rxdata' />
										</command>
										<command class_type='decision' title='Does the rx data match what we are expecting?' exp='.rxdata = .DataString[.idx]' swap='0' >
											<flowline >
												<command class_type='calculation' title='Reset Timeout' >
													<exp exp='.TimeOut = 0' />
												</command>
												<command class_type='calculation' title='Data detection has started' >
													<exp exp='.started = 1' />
												</command>
												<command class_type='calculation' title='Increment index' >
													<exp exp='.idx = .idx + 1' />
												</command>
												<command class_type='decision' title='At the end of the data string?' exp='.idx = .length' swap='0' >
													<flowline >
														<command class_type='calculation' title='Bail out' >
															<exp exp='.done = 1' />
														</command>
														<command class_type='calculation' title='String detected' >
															<exp exp='.Return = 1' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Does the rx data match the beggining char' exp='.rxdata = .DataString[0]' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='This is incase string starts again immediatley

e.g. &quot;starstarted&quot; when searching for &quot;started&quot;' textarea='12,0,12,0' />
														<command class_type='calculation' title='Reset index to point to location 1 again' >
															<exp exp='.idx = 1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Have we already started getting correct characters?' exp='.started = 1' swap='0' >
															<flowline >
																<command class_type='calculation' title='Bail Out' >
																	<exp exp='.done = 1' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='delay' title='Delay for some incoming data' exp='100' type='0' />
										<command class_type='calculation' title='Increment Timeout' >
											<exp exp='.TimeOut = .TimeOut + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetReplySim' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Simulation' component='dash_IO_flasher1' macro='FlashRx' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_ChipChange' description='Sent when the target device has changed' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Target' type='T8' description='The name of the new target device' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<command class_type='call' title='Call Macro' macro='pvt_GetUARTChannels' />
					</flowline>
				</macro>
				<macro >
					<flowline name='ParseName' description='parse the request for the page name' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;\x00&quot;' setinit='' >
							<array size='20' />
						</return>
						<param name='request' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.x = 5' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='(.request[.x] != &apos; &apos;) AND (.request[.x] != &apos;?&apos;) AND (.request[.x] != 0)' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return[.x - 5] = .request[.x]' />
									<exp exp='.x = .x + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return[.x - 5] = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ClientSendRequest' description='Sends out a request for data' >
						<param name='Request' type='T8*' description='e.g. &quot;GET / HTTP/1.0\r\n\r\n&quot;' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='50' />
						</local>
						<local name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='CommandLength' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='RetVal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.CommandLength = Length$ (.Request)' />
							<exp exp='.TempStr = STRING .CommandLength' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Command = &quot;AT+CIPSEND=&quot;' />
							<exp exp='.Command = .Command + .TempStr' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.RetVal' />
							<argument exp='&quot;&gt;&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='.RetVal' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='SendString' >
									<argument exp='.Request' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Macro' macro='SendString' >
									<argument exp='&quot;AT+CIPCLOSE&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='2' />
								<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadSSIDFromScan' description='Collects one of the SSID name strings from the last SSID Scan.
The ScanForSSID macro must be called first.' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</return>
						<param name='Index' type='u8' description='SSID Index' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Pos' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='loop' title='Loop' type='0' exp='.idx &lt; .Index' >
							<flowline >
								<command class_type='decision' title='Decision' exp='.Pos &gt;= ScanBufferSize' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = 0' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='ScanNames[.Pos] = &apos;,&apos;' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = .idx + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Pos = .Pos + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.idx = 0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='ScanNames[.Pos] != &apos;,&apos;' >
							<flowline >
								<command class_type='decision' title='Decision' exp='.Pos &gt;= ScanBufferSize' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return[.idx] = ScanNames[.Pos]' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.idx = .idx + 1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Pos = .Pos + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' labelid='0' labelname='A' />
						<command class_type='calculation' title='Terminate String' >
							<exp exp='.Return[.idx] = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadConnectionStatus' description='Checks the connection status.
Returns 0 if not connected, 1 if connected.' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='SendCommand' >
							<argument exp='&quot;RC&quot;' />
						</command>
						<command class_type='comment' title='' comment='wait reply ???????' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='//In buffer should be &quot;&lt;S0&gt;&quot; not connected or &quot;&lt;S1&gt;&quot; connected' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = RxBuffer[2] - &apos;0&apos;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CreateAccessPoint' description='Sets up the wireless LAN module into AP mode to host a wireless network.
Other WIFI enabled devices can then connect to the module.
Returns 1 for success.' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='SSID' type='T8*' description='Name of the wireless network to create' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Password' type='T8*' description='Password used to gain access to the network' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Channel' type='u8' description='802.11 Channel Range 1-14' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Encryption' type='u8' description='0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='50' />
						</local>
						<local name='tempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='5' />
						</local>
						<command class_type='call' title='Send Command - WIFI Mode AP' macro='SendString' >
							<argument exp='&quot;AT+CWMODE=2&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='WaitForEcho' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='WaitForCommand Ack - Might not be OK' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='WaitForCommand Ack - Might not be OK' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Flush buffer' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='calculation' title='Assemble Create SSID Command' >
							<exp exp='.Command = &quot;AT+CWSAP=\&quot;&quot;' />
							<exp exp='.Command = .Command + .SSID' />
							<exp exp='.Command = .Command + &quot;\&quot;,\&quot;&quot;' />
							<exp exp='.Command = .Command + .Password' />
							<exp exp='.Command = .Command + &quot;\&quot;,&quot;' />
							<exp exp='.tempStr = STRING .Channel' />
							<exp exp='.Command = .Command + .tempStr' />
							<exp exp='.Command = .Command + &quot;,&quot;' />
							<exp exp='.tempStr = STRING .Encryption' />
							<exp exp='.Command = .Command + .tempStr' />
						</command>
						<command class_type='call' title='Send Command' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;OK&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetOutValue' description='Set the value of an outbound substitution string' >
						<param name='index' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='value' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.index' >
							<case >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Out0 = .value' />
									</command>
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='Out1 = .value' />
									</command>
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Out2 = .value' />
									</command>
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='Out3 = .value' />
									</command>
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='Out4 = .value' />
									</command>
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Send_Embedded_HTML_Page4' description='' />
				</macro>
				<macro >
					<flowline name='ReadSignalStrengthFromScan' description='Collects the signal strength from the last SSID Scan.
The ScanForSSID macro must be called first.
Value returned is in negative dB, smaller value = better signal' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Index' type='u8' description='SSID Index' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='' >
							<exp exp='.Return = ScanSigStrength[.Index]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Pvt_AddPage' description='Sent to a component to allow dynamic amendment of header code' >
						<return name='Return' type='u32' description='Non-zero to block header code insertion' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='HeadCode' type='T8*' description='Text to amend for header' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='PageNumber' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='PageLength' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='SourceCount' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Character' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='DestinationCount' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='SubString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='100' />
						</local>
						<local name='path' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='100' />
						</local>
						<local name='PageText' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='FuncPath' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.PageLength = Length$ (html1)' />
							<exp exp='.DestinationCount = 0' />
							<exp exp='.SourceCount = 0' />
							<exp exp='.Character = 0xff' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.PageNumber' >
							<case >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.PageText = html1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.FuncPath = ::Expand .MacroName (&quot;Send_Embedded_HTML_Page1&quot;,this)' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.PageText = html2' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.FuncPath = ::Expand .MacroName (&quot;Send_Embedded_HTML_Page2&quot;,this)' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.PageText = html3' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.FuncPath = ::Expand .MacroName (&quot;Send_Embedded_HTML_Page3&quot;,this)' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.PageText = html4' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.FuncPath = ::Expand .MacroName (&quot;Send_Embedded_HTML_Page4&quot;,this)' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.path = ::Expand .MacroName (&quot;ServerSendHTML&quot;,this)' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.HeadCode = .HeadCode + &quot;\n\nvoid &quot; + .path + &quot;(const MX_CHAR *FCL_DATA, MX_UINT16 FCLsz_DATA);\n&quot;' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.HeadCode = .HeadCode + &quot;\n\nvoid &quot; + .FuncPath + &quot;() {\n&quot;' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.Character != 0' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.DestinationCount = 0' />
									<exp exp='' />
								</command>
								<command class_type='loop' title='find the sub-string length' type='0' exp='(.Character != 0) AND (.Character != 0x0a)' start='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Character = .PageText[.SourceCount]' />
											<exp exp='.SourceCount = .SourceCount + 1' />
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Character' >
											<case >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='.SubString[.DestinationCount] = .Character' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
													</command>
												</flowline>
											</case>
											<case exp='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='.SubString[.DestinationCount] = .Character' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
													</command>
												</flowline>
											</case>
											<case exp='0x0a' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='.SubString[.DestinationCount] = 0x5c' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
														<exp exp='.SubString[.DestinationCount] = &apos;n&apos;' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
													</command>
												</flowline>
											</case>
											<case exp='0x0d' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='.SubString[.DestinationCount] = 0x5c' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
														<exp exp='.SubString[.DestinationCount] = &apos;r&apos;' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
													</command>
												</flowline>
											</case>
											<case exp='0x22' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='.SubString[.DestinationCount] = 0x27' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
													</command>
												</flowline>
											</case>
											<case exp='0x09' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='.SubString[.DestinationCount] = 0x5c' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
														<exp exp='.SubString[.DestinationCount] = &apos;t&apos;' />
														<exp exp='.DestinationCount = .DestinationCount + 1' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.SubString[.DestinationCount] = 0' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.HeadCode = .HeadCode + &quot;\n\t&quot; + .path + &quot;(\&quot;&quot; + .SubString + &quot;\&quot;, &quot; + STRING .DestinationCount + &quot;);&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='' />
							<exp exp='.HeadCode = .HeadCode + &quot;\n}\n\n&quot;' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Send_Embedded_HTML_Page3' description='' />
				</macro>
				<macro >
					<flowline name='Ev_Property' description='Sent when a property has been changed by the User' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='Simulation' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='dash_IO_flasher1' />
							<argument exp='&quot;label&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE1&quot;,false)' />
							<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE2&quot;,false)' />
							<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE3&quot;,false)' />
							<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE4&quot;,false)' />
						</command>
						<command class_type='decision' title='set the pages used flags' exp='PAGES &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE1&quot;,true)' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='PAGES &gt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE2&quot;,true)' />
											<exp exp='' />
										</command>
										<command class_type='decision' title='Decision' exp='PAGES &gt; 2' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE3&quot;,true)' />
													<exp exp='' />
												</command>
												<command class_type='decision' title='Decision' exp='PAGES &gt; 3' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='::Component .Property .SetValue (this,&quot;WLAN_USE_PAGE4&quot;,true)' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Hide or show the used html info' >
							<exp exp='::Component .Property .SetVisible (this,&quot;name1&quot;,WLAN_USE_PAGE1)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;html1&quot;,WLAN_USE_PAGE1)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;name2&quot;,WLAN_USE_PAGE2)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;html2&quot;,WLAN_USE_PAGE2)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;name3&quot;,WLAN_USE_PAGE3)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;html3&quot;,WLAN_USE_PAGE3)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;name4&quot;,WLAN_USE_PAGE4)' />
							<exp exp='::Component .Property .SetVisible (this,&quot;html4&quot;,WLAN_USE_PAGE4)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='setup the UART ports' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='cal_uart1 :: SetValue (&quot;CHANNEL&quot;, ::Component .Property .GetValue (this,&quot;UART_CHANNEL&quot;))' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='cal_uart1 :: SetValue (&quot;BAUD_LIST&quot;, ::Component .Property .GetValue (this,&quot;BAUD&quot;))' />
							<exp exp='' />
						</command>
						<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
							<return exp='.temp_str' />
							<argument exp='cal_uart1' />
							<argument exp='&quot;Remappable&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='.temp_str[0] = &apos;1&apos;' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;TXRemap&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;RXRemap&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.GetFilter' >
									<return exp='.temp_str' />
									<argument exp='cal_uart1' />
									<argument exp='&quot;OutputPins&quot;' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetFilter' >
									<argument exp='this' />
									<argument exp='&quot;TXRemap&quot;' />
									<argument exp='.temp_str' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
									<return exp='.temp_str' />
									<argument exp='this' />
									<argument exp='&quot;TXRemap&quot;' />
								</command>
								<command class_type='sim' title='Simulation' component='cal_uart1' macro='SetValue' >
									<argument exp='&quot;OutputPins&quot;' />
									<argument exp='.temp_str' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.GetFilter' >
									<return exp='.temp_str' />
									<argument exp='cal_uart1' />
									<argument exp='&quot;InputPins&quot;' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetFilter' >
									<argument exp='this' />
									<argument exp='&quot;RXRemap&quot;' />
									<argument exp='.temp_str' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
									<return exp='.temp_str' />
									<argument exp='this' />
									<argument exp='&quot;RXRemap&quot;' />
								</command>
								<command class_type='sim' title='Simulation' component='cal_uart1' macro='SetValue' >
									<argument exp='&quot;InputPins&quot;' />
									<argument exp='.temp_str' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;TXRemap&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;RXRemap&quot;' />
									<argument exp='0' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='::Component .Property .SetValue (this,&quot;TX&quot;,cal_uart1 :: GetValue (&quot;TX&quot;))' />
							<exp exp='::Component .Property .SetValue (this,&quot;RX&quot;,cal_uart1 :: GetValue (&quot;RX&quot;))' />
						</command>
						<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
							<return exp='.temp_str' />
							<argument exp='this' />
							<argument exp='&quot;RxBufferSize&quot;' />
						</command>
						<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
							<argument exp='CircularBuffer1' />
							<argument exp='&quot;BufferSize&quot;' />
							<argument exp='.temp_str' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IsNumeric' description='' >
						<return name='Return' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='c' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='(.c &gt;= &apos;0&apos;) AND (.c &lt;= &apos;9&apos;)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Send_Embedded_HTML_Page2' description='' />
				</macro>
				<macro >
					<flowline name='Send_Embedded_HTML_Page1' description='' />
				</macro>
				<macro >
					<flowline name='ReadEncryptionModeFromScan' description='Collects one of the encryption modes from the last SSID Scan.
The ScanForSSID macro must be called first.
0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Index' type='u8' description='SSID Index' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='' >
							<exp exp='.Return = ScanEncModes[.Index]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetByteWithTimeout' description='Attempts to receive a byte from the circular buffer.
If nothing is available then waits up to 200 ms for data to become available.' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='NumBytes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Timeout' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Default Return Value' >
							<exp exp='.Return = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='GetNumberBytes' >
							<return exp='.NumBytes' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.NumBytes = 0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='GetNumberBytes' >
									<return exp='.NumBytes' />
								</command>
								<command class_type='decision' title='Decision' exp='.NumBytes = 0' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' exp='1' type='0' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Timeout = .Timeout + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='.Timeout = 20000' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='GetByte' >
							<return exp='.Return' />
						</command>
						<command class_type='label' title='Connection Point' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='GetInValue' description='Returns the string value of a Request parameter' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;\x00&quot;' setinit='' >
							<array size='20' />
						</return>
						<param name='index' type='u8' description='Index of the request paramter, starting at zero.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.index' >
							<case >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='.Return = In0' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='.Return = In1' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='.Return = In2' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CheckForPageRequestsSim' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Channels' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='c' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='s' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='256' />
						</local>
						<local name='x' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='g' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='page' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='name' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='200' />
						</local>
						<local name='got_line' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='request_length' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='data_available' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='part_size' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='RxDataAvailable' >
							<return exp='.data_available' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.page = 0' />
						</command>
						<command class_type='decision' title='Decision' exp='.data_available' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.got_line = 0' />
									<exp exp='.x = 0' />
									<exp exp='.request_length = 0' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.part_size &gt; 0' start='0' >
									<flowline >
										<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='RxDataSize' >
											<return exp='.part_size' />
											<argument exp='0' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.request_length = .request_length + .part_size' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.x &lt; .request_length' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.got_line' swap='0' >
													<flowline >
														<command class_type='sim' title='Simulation' component='TCP_Base1' macro='RxReadByte' >
															<argument exp='0' />
														</command>
													</flowline>
													<flowline >
														<command class_type='sim' title='Simulation' component='TCP_Base1' macro='RxReadByte' >
															<return exp='.s[.x]' />
															<argument exp='0' />
														</command>
														<command class_type='decision' title='Decision' exp='(.s[.x] = 0x0d) OR (.s[.x] = 0x0a)' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.s[.x] = 0' />
																	<exp exp='.got_line = 1' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.x = .x + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='RxFlushData' >
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' macro='Debug.PrintLn' >
									<argument exp='&quot;request=&quot; + .s' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.g = Left$ (.s,5)' />
								</command>
								<command class_type='decision' title='Decision' exp='Compare$ (.g,&quot;GET /&quot;,1) = 0' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='we have a GET request' textarea='12,0,12,0' />
										<command class_type='comment' title='' comment='parse the page name' textarea='12,0,12,0' />
										<command class_type='call' title='Call Macro' macro='ParseName' >
											<return exp='.name' />
											<argument exp='.s' />
										</command>
										<command class_type='sim' title='Simulation' macro='Debug.PrintLn' >
											<argument exp='&quot;name=&quot; + .name' />
										</command>
										<command class_type='comment' title='' comment='check for any request params' textarea='12,0,12,0' />
										<command class_type='call' title='Call Macro' macro='ParseParams' />
										<command class_type='sim' title='Simulation' macro='Debug.PrintLn' >
											<argument exp='&quot;done ParseParams()&quot;' />
										</command>
										<command class_type='comment' title='' comment='TO DO check for Embedded or file mode' textarea='12,0,12,0' />
										<command class_type='decision' title='Decision' exp='1' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='reply with the requested named embedded page' textarea='12,0,12,0' />
												<command class_type='call' title='Call Macro' macro='SendEmbeddedPageSim' >
													<return exp='.page' />
													<argument exp='.name' />
												</command>
												<command class_type='sim' title='Simulation' macro='Debug.PrintLn' >
													<argument exp='&quot;done SendEmbeddedPage()&quot;' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = .page' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ConnectToSSID' description='Attempts to connect to the given SSID and Key values. 
Returns 1 if the SSID has been connected.
' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='SSID' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Key' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='100' />
						</local>
						<command class_type='call' title='Send Command - WIFI Mode STA' macro='SendString' >
							<argument exp='&quot;AT+CWMODE=1&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='WaitForEcho' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='WaitForCommand Ack - Might not be OK' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='WaitForCommand Ack - Might not be OK' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Flush buffer' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='calculation' title='Assemble Join SSID Command' >
							<exp exp='.Command = &quot;AT+CWJAP=\&quot;&quot;' />
							<exp exp='.Command = .Command + .SSID' />
							<exp exp='.Command = .Command + &quot;\&quot;,\&quot;&quot;' />
							<exp exp='.Command = .Command + .Key' />
							<exp exp='.Command = .Command + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Send Command' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Wait for connection to be established' exp='2' type='2' />
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;OK&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ParseParams' description='evaluate the In request parameter values' >
						<local name='n' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='param' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='done' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='value' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='length' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='in' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.done = 0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.done = 0' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
									<return exp='.in' />
								</command>
								<command class_type='decision' title='Decision' exp='IsTerminate (.in)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.done = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='(.in = &apos;?&apos;) OR (.in = &apos;&amp;&apos;)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.param = 0' />
										</command>
										<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
											<return exp='.in' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='IsAlphaNumeric (.in)' >
											<flowline >
												<command class_type='decision' title='Decision' exp='IsNumeric (.in)' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.param = (.param * 10) + .in - &apos;0&apos;' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
													<return exp='.in' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' exp='.in = &apos;=&apos;' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.length = 0' />
													<exp exp='.value = &quot;&quot;' />
												</command>
												<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
													<return exp='.in' />
												</command>
												<command class_type='loop' title='Loop' type='0' exp='(IsAlphaNumeric (.in)) AND (.length &lt; 18)' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.value[.length] = .in' />
															<exp exp='.length = .length + 1' />
														</command>
														<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
															<return exp='.in' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.value[.length] = 0' />
												</command>
												<command class_type='comment' title='' comment='save the In value' textarea='12,0,12,0' />
												<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.param' >
													<case >
														<flowline >
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='calculation' title='Calculation' >
																<exp exp='In0 = .value' />
															</command>
														</flowline>
													</case>
													<case exp='1' >
														<flowline >
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='calculation' title='Calculation' >
																<exp exp='In1 = .value' />
															</command>
														</flowline>
													</case>
													<case exp='2' >
														<flowline >
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='block' title='' hide='1' start='1' />
															<command class_type='block' title='' hide='1' start='0' />
															<command class_type='calculation' title='Calculation' >
																<exp exp='In2 = .value' />
															</command>
														</flowline>
													</case>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
											<return exp='.in' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendHTMLSim' description='' >
						<param name='text' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='s' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='n' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Simulation' component='dash_IO_flasher1' macro='FlashTx' />
						<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxStart' >
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' exp='.text[0]' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Debug.PrintLn' >
									<argument exp='&quot;SendHTML_Sim Sending Page OK&quot;' />
								</command>
								<command class_type='sim' title='Send the HTML Header' component='TCP_Base1' macro='TxSendString' >
									<argument exp='0' />
									<argument exp='&quot;HTTP/1.0 200 OK\r\n&quot;' />
								</command>
								<command class_type='comment' title='' comment='we could send the content type here, such as..
&quot;Content-type: text/html\r\n&quot;
but we would need to be more specific for other media types' textarea='12,0,12,0' />
								<command class_type='sim' title='' component='TCP_Base1' macro='TxSendString' >
									<argument exp='0' />
									<argument exp='&quot;\r\n&quot;' />
								</command>
								<command class_type='comment' title='' comment='we previously interted the doc type here, e.g...
&quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.0 Transitional//EN\&quot;&gt;\r\n&quot;
could be replaced with simply...
&quot;&lt;!DOCTYPE HTML&gt;\r\n&quot;
but again that&apos;s not helpful if we are not sending html
' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='.n = 0' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.text[.n]' >
									<flowline >
										<command class_type='decision' title='Decision' exp='.text[.n] = &apos;%&apos;' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' exp='(.text[.n + 1] &gt;= &apos;0&apos;) &amp;&amp; (.text[.n + 1] &lt; (&apos;0&apos; + MAX_OUT_SUBS))' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.n = .n + 1' />
														</command>
														<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.text[.n] - &apos;0&apos;' >
															<case >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendString' >
																		<argument exp='0' />
																		<argument exp='Out0' />
																	</command>
																</flowline>
															</case>
															<case exp='1' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendString' >
																		<argument exp='0' />
																		<argument exp='Out1' />
																	</command>
																</flowline>
															</case>
															<case exp='2' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendString' >
																		<argument exp='0' />
																		<argument exp='Out2' />
																	</command>
																</flowline>
															</case>
															<case exp='3' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendString' >
																		<argument exp='0' />
																		<argument exp='Out3' />
																	</command>
																</flowline>
															</case>
															<case exp='4' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendString' >
																		<argument exp='0' />
																		<argument exp='Out4' />
																	</command>
																</flowline>
															</case>
														</command>
													</flowline>
													<flowline >
														<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendByte' >
															<argument exp='0' />
															<argument exp='&apos;%&apos;' />
														</command>
														<command class_type='decision' title='Decision' exp='.text[.n + 1] = &apos;%&apos;' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.n = .n + 1' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxSendByte' >
													<argument exp='0' />
													<argument exp='.text[.n]' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.n = .n + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='send Not Found' textarea='12,0,12,0' />
								<command class_type='sim' title='Simulation' macro='Debug.PrintLn' >
									<argument exp='&quot;SendHTML_Sim Sending 404 Not Found&quot;' />
								</command>
								<command class_type='sim' title='Page not found' component='TCP_Base1' macro='TxSendString' >
									<argument exp='0' />
									<argument exp='&quot;HTTP/1.0 404 Not Found\r\n&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='sim' title='Call Component Macro' component='TCP_Base1' macro='TxEnd' >
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro keep='1' >
					<flowline name='ISR_UART' description='' >
						<local name='rx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' component='cal_uart1' macro='Receive' >
							<return exp='.rx' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='PutByte' >
							<argument exp='.rx' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' exp='CmdState' >
							<case >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='decision' title='if (RxCount &lt; MX_WLAN_RX_BUFF)' exp='RxCount &lt; 30' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='RxBuffer[RxCount] = .rx' />
												<exp exp='RxCount = RxCount + 1' />
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='decision' title='Decision' exp='.rx = &apos;&gt;&apos;' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 0' />
											</command>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='decision' title='Decision' exp='.rx = &apos;E&apos;' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 3' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 0' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='decision' title='Decision' exp='.rx = &apos;T&apos;' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 4' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 0' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='decision' title='Decision' exp='.rx = &apos; &apos;' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 5' />
												<exp exp='RxCount = 0' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 0' />
											</command>
										</flowline>
									</command>
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='decision' title='Decision' exp='.rx = &apos; &apos;' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='RxBuffer[RxCount] = 0' />
												<exp exp='CmdState = 0' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Store request uri' exp='RxCount &lt; 30' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='RxBuffer[RxCount] = .rx' />
														<exp exp='RxCount = RxCount + 1' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</command>
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='block' title='' hide='1' start='0' />
									<command class_type='block' title='' hide='1' start='1' />
									<command class_type='decision' title='Decision' exp='.rx = &apos;G&apos;' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='CmdState = 2' />
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='block' title='' hide='1' start='0' />
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_GetVarSize' description='Sent to a component to amend the size of the expected array' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='VarName' type='T8' description='The original Flowcode variable' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Elements' type='u32*' description='The number of elements in the array' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='Compare$ (.VarName,&quot;ScanNames&quot;,0) = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Elements = ScanBufferSize' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetReply' description='Returns the last received response to a command.
0 = OK
1 = FAIL_ERR
2 = STX_ERR
3 = CMD_ERR
4 = PARAM_ERR
5 = ETX_ERR
6 = SERIAL
255 = TOUT' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='RxCount and RxBuffer are populated by the UART Interrupt
' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = MX_WLAN_CMD_TOUT' />
						</command>
						<command class_type='decision' title='Decision' exp='RxCount &gt; 1' swap='0' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='RxBuffer[1]' >
									<case >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
										</flowline>
									</case>
									<case exp='&apos;S&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_OK' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;F&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_FAIL_ERR' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;0&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_STX_ERR' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;1&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_CMD_ERR' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;2&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_PARAM_ERR' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;3&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_ETX_ERR' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;E&apos;' >
										<flowline >
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='block' title='' hide='1' start='1' />
											<command class_type='block' title='' hide='1' start='0' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='.Return = MX_WLAN_CMD_SERIAL' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IsTerminate' description='' >
						<return name='Return' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='c' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='(.c &lt; &apos; &apos;)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_AddHeader' description='Sent to a component to allow dynamic amendment of header code' >
						<return name='Return' type='u32' description='Non-zero to block header code insertion' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='HeadCode' type='T8*' description='Text to amend for header' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<command class_type='call' title='Call Macro' macro='Pvt_AddPage' >
							<argument exp='.HeadCode' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='Pvt_AddPage' >
							<argument exp='.HeadCode' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Macro' macro='Pvt_AddPage' >
							<argument exp='.HeadCode' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Macro' macro='Pvt_AddPage' >
							<argument exp='.HeadCode' />
							<argument exp='4' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ServerSendHTML' description='Sends out a request for data' >
						<param name='Request' type='T8*' description='e.g. &quot;GET / HTTP/1.0\r\n\r\n&quot;' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='50' />
						</local>
						<local name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='CommandLength' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='RetVal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.CommandLength = Length$ (.Request)' />
							<exp exp='.TempStr = STRING .CommandLength' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Command = &quot;AT+CIPSEND=0,&quot;' />
							<exp exp='.Command = .Command + .TempStr' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='call' title='Call Macro' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.RetVal' />
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendHTMLString' >
							<argument exp='.Request' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<return exp='.RetVal' />
							<argument exp='&quot;SEND OK&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendHTMLString' description='sends the Text string to the WLAN UART, but also substitutes %x for Outx values' >
						<param name='Data' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='CrLf' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='num_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='subidx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='len' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='loop' title='Loop' type='0' exp='.Data[.idx] != 0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='.Data[.idx] = &apos;%&apos;' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='.Data[.idx + 1] = &apos;%&apos;' swap='0' >
											<flowline >
												<command class_type='call' title='%% should be sent as single %' component='cal_uart1' macro='Send' >
													<argument exp='&apos;%&apos;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' exp='(.Data[.idx + 1] &gt;= &apos;0&apos;) &amp;&amp; (.Data[.idx + 1] &lt; (&apos;0&apos; + MAX_OUT_SUBS))' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.subidx = .Data[.idx + 1] - &apos;0&apos;' />
														</command>
														<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Data[.idx + 1] - &apos;0&apos;' >
															<case >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='.num_str = Out0' />
																	</command>
																</flowline>
															</case>
															<case exp='1' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='.num_str = Out1' />
																	</command>
																</flowline>
															</case>
															<case exp='2' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='.num_str = Out2' />
																	</command>
																</flowline>
															</case>
															<case exp='3' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='.num_str = Out3' />
																	</command>
																</flowline>
															</case>
															<case exp='4' >
																<flowline >
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='block' title='' hide='1' start='1' />
																	<command class_type='block' title='' hide='1' start='0' />
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='.num_str = Out4' />
																	</command>
																</flowline>
															</case>
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.len = Length$ (.num_str)' />
															<exp exp='.subidx = 0' />
														</command>
														<command class_type='loop' title='Loop' type='0' exp='.subidx &lt; .len' >
															<flowline >
																<command class_type='call' title='Call Macro' component='cal_uart1' macro='Send' >
																	<argument exp='.num_str[.subidx]' />
																</command>
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.subidx = .subidx + 1' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='comment' title='' comment='Illegal substitution - just ignore
' textarea='12,0,12,0' />
														<command class_type='call' title='Call Macro' component='cal_uart1' macro='Send' >
															<argument exp='&apos;%&apos;' />
														</command>
														<command class_type='call' title='Call Macro' component='cal_uart1' macro='Send' >
															<argument exp='.Data[.idx + 1]' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = .idx + 2' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' component='cal_uart1' macro='Send' >
											<argument exp='.Data[.idx]' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = .idx + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='.CrLf' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='cal_uart1' macro='Send' >
									<argument exp='0x0d' />
								</command>
								<command class_type='call' title='Call Component Macro' component='cal_uart1' macro='Send' >
									<argument exp='0x0a' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ScanForSSID' description='Checks for wireless networks in the local area which are broadcasting their SSID.
Must not be connected to a network to allow this to function.
Returns the number of wireless networks found, max 8.' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='RetVal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Index' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='NameIndex' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Done' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='NameIndex2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='call' title='Send Command - WIFI Mode STA' macro='SendString' >
							<argument exp='&quot;AT+CWMODE=1&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='WaitForEcho' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='WaitForCommand Ack - Might not be OK' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='calculation' title='Assemble Scan SSID Command' >
							<exp exp='.Command = &quot;AT+CWLAP&quot;' />
						</command>
						<command class_type='call' title='Send Command' macro='SendString' >
							<argument exp='.Command' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='WaitForEcho' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='delay' title='Delay' exp='500' type='1' />
						<command class_type='call' title='WaitFor &quot;+CWLAP:(0&quot;' macro='CheckForData' >
							<return exp='.RetVal' />
							<argument exp='&quot;+CWLAP:(&quot;' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.RetVal' >
							<flowline >
								<command class_type='call' title='WaitFor &quot;+CWLAP:(&quot;' macro='CheckForData' >
									<return exp='.RetVal' />
									<argument exp='&quot;+CWLAP:(&quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='.RetVal' swap='0' >
									<flowline >
										<command class_type='call' title='Read byte from rx buffer' macro='GetByteWithTimeout' >
											<return exp='ScanEncModes[.Index]' />
										</command>
										<command class_type='calculation' title='Subtract ASCII offset' >
											<exp exp='ScanEncModes[.Index] = ScanEncModes[.Index] - &apos;0&apos;' />
										</command>
										<command class_type='call' title='Skip Over comma' macro='GetByteWithTimeout' />
										<command class_type='call' title='Skip Over Opening Quote' macro='GetByteWithTimeout' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Done = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.Done = 0' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.NameIndex &lt; ScanBufferSize' swap='0' >
													<flowline >
														<command class_type='call' title='Collect Data Byte from SSID Name' macro='GetByteWithTimeout' >
															<return exp='ScanNames[.NameIndex]' />
														</command>
														<command class_type='decision' title='Decision' exp='ScanNames[.NameIndex] = &apos;\&quot;&apos;' swap='0' >
															<flowline >
																<command class_type='calculation' title='Replace &quot; with ,' >
																	<exp exp='ScanNames[.NameIndex] = &apos;,&apos;' />
																</command>
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.Done = 1' />
																</command>
															</flowline>
															<flowline />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.NameIndex = .NameIndex + 1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.Done = 1' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Skip Over comma' macro='GetByteWithTimeout' />
										<command class_type='call' title='Skip Over negative sign' macro='GetByteWithTimeout' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Done = 0' />
											<exp exp='.NameIndex2 = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.Done = 0' >
											<flowline >
												<command class_type='call' title='Collect Data Byte from Sig Strength' macro='GetByteWithTimeout' >
													<return exp='.Command[.NameIndex2]' />
												</command>
												<command class_type='decision' title='Decision' exp='.Command[.NameIndex2] = &apos;)&apos;' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.Command[.NameIndex2] = 0' />
														</command>
														<command class_type='calculation' title='Assign Value to Variable' >
															<exp exp='ScanSigStrength[.Index] = StringToInt$ (.Command)' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.Done = 1' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.NameIndex2 = .NameIndex2 + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Index = .Index + 1' />
										</command>
										<command class_type='decision' title='Decision' exp='.Index = 8' swap='0' >
											<flowline >
												<command class_type='calculation' title='Bail Out' >
													<exp exp='.RetVal = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = .Index' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Call Macro' disable='1' macro='Ev_Initialise' />
						<command class_type='call' title='Call Macro' macro='Initialise' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='Initialise the device with the property data.
Returns 1 if &quot;ready&quot; message successfully received 
Returns 0 if no reply from module' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='test' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='count' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Init the In and Out Vars' >
							<exp exp='Out0[0] = 0' />
							<exp exp='Out1[0] = 0' />
							<exp exp='Out2[0] = 0' />
							<exp exp='Out3[0] = 0' />
							<exp exp='Out4[0] = 0' />
							<exp exp='In0[0] = 0' />
							<exp exp='In1[0] = 0' />
							<exp exp='In2[0] = 0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 255' />
						</command>
						<command class_type='call' title='Initialise the UART' component='cal_uart1' macro='Init' />
						<command class_type='decision' title='Decision' exp='ResetMode = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Reset WIFI Module' >
									<exp exp='RESET = 0' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='1' />
								<command class_type='calculation' title='Bring out of Reset' >
									<exp exp='RESET = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Macro' macro='SendString' >
									<argument exp='&quot;AT+RST&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Wait for reply' exp='1' type='2' />
						<command class_type='call' title='Check for startup &quot;ready&quot;' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;ready&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='delay' title='Wait for reply' exp='1' type='2' />
						<command class_type='call' title='Start With Single Connection' macro='SendString' >
							<argument exp='&quot;AT+CIPMUX=0&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Check for startup &quot;ready&quot;' macro='CheckForData' >
							<return exp='.Return' />
							<argument exp='&quot;OK&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
					</flowline>
				</macro>
				<macro >
					<flowline name='pvt_RemoveListOpt' description='' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;\x00&quot;' setinit='' >
							<array size='20' />
						</return>
						<param name='ListStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='OptStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='ListLen' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='OptLen' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='IdxMax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Idx' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='LoopExit' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='StrMatch' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='TestStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = .ListStr' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.ListLen = Length$ (.ListStr)' />
							<exp exp='.OptLen = Length$ (.OptStr)' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.IdxMax = .ListLen - .OptLen' />
							<exp exp='.Idx = 0' />
							<exp exp='.LoopExit = 0' />
						</command>
						<command class_type='loop' title='Loop' type='1' exp='.LoopExit' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.TestStr = Mid$ (.ListStr, .Idx, .OptLen)' />
									<exp exp='.StrMatch = Compare$ (.OptStr, .TestStr,1)' />
								</command>
								<command class_type='decision' title='Decision' exp='.StrMatch = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='.Idx &gt;= 3' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.Idx = .Idx - 3' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Return = Left$ (.ListStr, .Idx) + Right$ (.ListStr, (.ListLen - .Idx - .OptLen - 4))' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.LoopExit = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='.Idx = .IdxMax' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.LoopExit = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Idx = .Idx + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CheckTCPServerIP' description='Collects the local IP address of the active TCP server.' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</return>
						<local name='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='50' />
						</local>
						<local name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='in' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
						<command class_type='call' title='Call Macro' macro='SendString' >
							<argument exp='&quot;AT+CIFSR&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' macro='CheckForData' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
							<return exp='.in' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.in != &apos;\r&apos;' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return[.idx] = .in' />
								</command>
								<command class_type='call' title='Call Macro' macro='GetByteWithTimeout' >
									<return exp='.in' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return[.idx] = 0' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='group' codename='group1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values />
				<events />
				<apis />
				<variables />
				<macros />
				<component class_type='ref' guid='91b64b1d-b8b2-40f1-b073-e953a91fa234' vmin='0' vmaj='1' codename='cal_uart1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
					<resources />
					<properties />
					<values >
						<value target='CHANNEL' data='001' />
						<value target='TX' data='$PORTC.6' />
						<value target='OutputPins' data='007' />
						<value target='RX' data='$PORTC.7' />
						<value target='InputPins' data='013' />
						<value target='CTS_PORT' data='$PORTB.3' />
						<value target='CTS_PIN' data='3' />
						<value target='CTS_TRIS' data='$PORTB.3' />
						<value target='RTS_PORT' data='$PORTB.4' />
						<value target='RTS_PIN' data='4' />
						<value target='RTS_TRIS' data='$PORTB.4' />
						<value target='BAUD_LIST' data='009' />
						<value target='BAUD' data='115200' />
						<value target='DBITS' data='008' />
						<value target='RETURN' data='000' />
						<value target='ECHO' data='000' />
						<value target='INT' data='001' />
						<value target='FLOWEN' data='000' />
						<value target='RTS' data='$PORTB.4' />
						<value target='CTS' data='$PORTB.3' />
						<value target='REF' data='0' />
						<value target='TX_PORT' data='$PORTC.6' />
						<value target='TX_TRIS' data='$PORTC.6' />
						<value target='TX_PIN' data='6' />
						<value target='RX_PORT' data='$PORTC.7' />
						<value target='RX_TRIS' data='$PORTC.7' />
						<value target='RX_PIN' data='7' />
						<value target='REMAPPABLE' data='' />
						<value target='OutputReg' data='007' />
						<value target='TXRPNUM' data='3' />
						<value target='RXRPREG' data='RPINR18bits.U1RXR' />
						<value target='Injector' data='000' />
						<value target='InjectorHandle' data='0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='54369d81-80ed-4d59-97bf-91f4b2cdf24c' vmin='4' vmaj='1' codename='TCP_Base1' x='-10' y='0' z='-1' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
					<resources />
					<properties />
					<values >
						<value target='hostname' data='IRONMAN-PC' />
						<value target='interface' data='000' />
						<value target='gateway0' data='0' />
						<value target='gateway1' data='0' />
						<value target='gateway2' data='0' />
						<value target='gateway3' data='10' />
						<value target='subnet0' data='0' />
						<value target='subnet1' data='0' />
						<value target='subnet2' data='0' />
						<value target='subnet3' data='0' />
						<value target='ip0' data='0' />
						<value target='ip1' data='0' />
						<value target='ip2' data='0' />
						<value target='ip3' data='0' />
						<value target='mac0' data='0' />
						<value target='mac1' data='21' />
						<value target='mac2' data='131' />
						<value target='mac3' data='21' />
						<value target='mac4' data='163' />
						<value target='mac5' data='16' />
						<value target='notify_target' data='' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='175423b4-b359-4aa7-9bc4-1867301742af' vmin='1' vmaj='1' codename='dash_IO_flasher1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
					<resources />
					<properties />
					<values >
						<value target='label' data='WLAN' />
						<value target='icon_image' data='@00000001:RF_ISM.png' />
						<value target='flash_time' data='250' />
						<value target='Tx_on_color' data='65280' />
						<value target='Tx_off_color' data='13056' />
						<value target='Rx_on_color' data='255' />
						<value target='Rx_off_color' data='65' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='0' vmaj='1' codename='CircularBuffer1' x='45.6261' y='-0.325299' z='1' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='4' />
		<table rgb='1517134' img='' style='0' size='50' />
		<camera xe='27' ye='2' ze='121.48' xt='27' yt='2' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='SetOutValue' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendHTMLString' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CheckForPageRequests' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='37' scrolly='104' flags='0' />
		<view type='0' name='CheckForPageRequestsSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ParseParams' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IsTerminate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Pvt_AddPage' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CheckTCPServerIP' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ServerSendHTML' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ControlTCPServer' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClientSendRequest' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendString' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_AddHeader' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Property' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_GetVarSize' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_ChipChange' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_AddInterrupts' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send_Embedded_HTML_Page1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send_Embedded_HTML_Page4' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send_Embedded_HTML_Page3' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send_Embedded_HTML_Page2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CheckForData' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GetFirmwareVersion' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CreateAccessPoint' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ConnectToSSID' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='InitialiseSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClientConnect' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GetByteWithTimeout' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ScanForSSID' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadSSIDFromScan' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ISR_UART' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisconnectFromSSID' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadSignalStrengthFromScan' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadEncryptionModeFromScan' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GetInValue' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AQAAJEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
