<root>
<document schema='101' license='50,Dev User,XDKHX7' title='' description='' target='PIC16.33E.EB091' >
	<config data='' clkspd='140000000' 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='0' />
			<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='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' 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='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='934228da-23c4-4091-a428-299cdb8128aa' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' 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 >
				<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='data' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Main' description='Starts up the WIFI module then configures the module as an access point.
The network &quot;Flowcode_ESP8266&quot; should appear on a WIFI enabled device.
Password is &quot;flowcode6&quot;. The program then runs a webserver on port 80.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Startup LCD' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Print Init' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Init, &quot;' />
						</command>
						<command class_type='call' title='Initialise Wifi' component='WLAN_ESP8266' macro='Initialise' />
						<command class_type='call' title='Print FW' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;AP&quot;' />
						</command>
						<command class_type='call' title='Create Access Point' component='WLAN_ESP8266' macro='CreateAccessPoint' >
							<return exp='ret' />
							<argument exp='&quot;Flowcode_ESP8266&quot;' />
							<argument exp='&quot;flowcode6&quot;' />
							<argument exp='5' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Move to second line of LCD' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' exp='ret = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Print ok' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;OK&quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='2' />
								<command class_type='call' title='Clear LCD' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Server &quot;' />
								</command>
								<command class_type='call' title='Startup Listening Server' component='WLAN_ESP8266' macro='ControlTCPServer' >
									<return exp='ret' />
									<argument exp='1' />
									<argument exp='80' />
								</command>
								<command class_type='decision' title='Decision' exp='ret = 1' swap='0' >
									<flowline >
										<command class_type='call' title='' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;Started&quot;' />
										</command>
										<command class_type='call' title='Control LCD Cursor' component='lcd_eb005' macro='Cursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;IP:&quot;' />
										</command>
										<command class_type='call' title='Read Server IP' component='WLAN_ESP8266' macro='CheckTCPServerIP' >
											<return exp='data' />
										</command>
										<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintString' >
											<argument exp='data' />
										</command>
										<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
											<argument exp='0' />
											<argument exp='&quot;0&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
											<argument exp='1' />
											<argument exp='&quot;1&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
											<argument exp='2' />
											<argument exp='&quot;Off&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
											<argument exp='3' />
											<argument exp='&quot;On&quot;' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='1' >
											<flowline >
												<command class_type='call' title='Call Macro' component='WLAN_ESP8266' macro='CheckForPageRequests' >
													<return exp='ret' />
												</command>
												<command class_type='decision' title='Decision' exp='ret &gt; 0' swap='0' >
													<flowline >
														<command class_type='call' title='Clear top line of LCD' component='lcd_eb005' macro='ClearLine' >
															<argument exp='0' />
														</command>
														<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintString' >
															<argument exp='&quot;Page:&quot;' />
														</command>
														<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintNumber' >
															<argument exp='ret' />
														</command>
														<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='GetInValue' >
															<return exp='data' />
															<argument exp='0' />
														</command>
														<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='data[0]' >
															<case >
																<flowline />
															</case>
															<case exp='&apos;0&apos;' >
																<flowline >
																	<command class_type='comment' title='' comment='got turn off command' textarea='12,0,12,0' />
																	<command class_type='output' title='Output' mode='0' port='135266305' mask='0' exp='0' />
																	<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
																		<argument exp='1' />
																		<argument exp='&quot;1&quot;' />
																	</command>
																	<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
																		<argument exp='2' />
																		<argument exp='&quot;Off&quot;' />
																	</command>
																	<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
																		<argument exp='3' />
																		<argument exp='&quot;On&quot;' />
																	</command>
																</flowline>
															</case>
															<case exp='&apos;1&apos;' >
																<flowline >
																	<command class_type='comment' title='' comment='got turn on command' textarea='12,0,12,0' />
																	<command class_type='output' title='Output' mode='0' port='135266305' mask='0' exp='0xff' />
																	<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
																		<argument exp='1' />
																		<argument exp='&quot;0&quot;' />
																	</command>
																	<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
																		<argument exp='2' />
																		<argument exp='&quot;On&quot;' />
																	</command>
																	<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
																		<argument exp='3' />
																		<argument exp='&quot;Off&quot;' />
																	</command>
																</flowline>
															</case>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Startup LCD' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;Fail&quot;' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Print fail' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Fail&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='e1bb4679-58ef-40dc-8d09-306ada46f7bf' vmin='6' vmaj='1' codename='WLAN_ESP8266' x='-0.0359411' y='16.4711' z='0.755' 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='RxBufferSize' data='250' />
					<value target='ScanBufferSize' data='128' />
					<value target='ResetMode' data='001' />
					<value target='Termination' data='001' />
					<value target='UART_CHANNEL' data='001' />
					<value target='BAUD' data='009' />
					<value target='RESET' data='$PORTD.5' />
					<value target='TX' data='$PORTD.6' />
					<value target='RX' data='$PORTD.7' />
					<value target='TXRemap' data='013' />
					<value target='RXRemap' data='071' />
					<value target='PAGES' data='003' />
					<value target='TIMEOUT' data='4' />
					<value target='LineDelay' data='100' />
					<value target='name1' data='index.htm' />
					<value target='html1' data='&lt;html&gt;&lt;head&gt;&lt;title&gt;IoT Remote Control&lt;/title&gt;
&lt;style&gt;
.On { font-family: Arial; font-size: 72px; font-weight: bold; background-color: lightgreen; text-align:center; }
.Off { font-family: Arial; font-size: 72px; font-weight: bold; background-color: red; text-align:center; }
&lt;/style&gt;&lt;/head&gt;
&lt;body class=&apos;%2&apos;&gt;Output is %2&lt;p&gt;&lt;a href=&apos;process.htm?0=%1&apos;&gt;Switch %3&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;' />
					<value target='name2' data='process.htm' />
					<value target='html2' data='&lt;html&gt;&lt;head&gt;&lt;title&gt;IoT Remote Control&lt;/title&gt;
&lt;style&gt;
.run {
font-family: Arial;
font-size: 72px;
font-weight: bold;
background-color: yellow;
text-align:center;
}
&lt;/style&gt;&lt;script&gt;
function reFresh()
{
  location.href=&apos;index.htm&apos;
}
window.setInterval(&apos;reFresh()&apos;,1000);
&lt;/script&gt;&lt;/head&gt;
&lt;body class=&apos;run&apos;&gt;
Processing ...
&lt;/body&gt;&lt;/html&gt;' />
					<value target='name3' data='page3.htm' />
					<value target='html3' data='&lt;h1&gt;Hello %1 %%&lt;/h1&gt;' />
					<value target='name4' data='page4.htm' />
					<value target='html4' data='&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='0' />
					<value target='Injector' data='000' />
					<value target='label' data='WLAN' />
					<value target='LenIn0' data='20' />
					<value target='LenIn1' data='20' />
					<value target='LenIn2' data='20' />
					<value target='LenIn3' data='20' />
					<value target='LenIn4' data='20' />
					<value target='LenIn5' data='20' />
					<value target='LenOut0' data='20' />
					<value target='LenOut1' data='20' />
					<value target='LenOut2' data='20' />
					<value target='LenOut3' data='20' />
					<value target='LenOut4' data='20' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='0.686611' y='-25.0507' 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='Pin_Data_0' data='$PORTB.0' />
					<value target='Pin_Data_1' data='$PORTB.1' />
					<value target='Pin_Data_2' data='$PORTB.2' />
					<value target='Pin_Data_3' data='$PORTB.3' />
					<value target='Pin_RS' data='$PORTB.4' />
					<value target='Pin_E' data='$PORTB.5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='15335401' 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='16777215' img='' style='0' />
		<table rgb='16777215' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='207.345' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAArQQAALkDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
