<root>
<document schema='101' license='1,MARK-LEE-23,C1D7WZ' title='' description='' target='PIC.18F.18F46K80' >
	<config data='!0,bf!8,22!10,ff!18,f4!20,ff!28,ff!30,ff!38,ff!40,ff!48,ff!50,ff!58,ff!60,ff!68,ff%0,1%2,1%3,3%6,0%8,2%c,0%e,0%f,0%10,1%11,3%13,3%15,3%18,0%1b,e%1a,1%28,1%2b,1%2f,1%30,1%34,1%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='18432000' simspd='5' 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='741d7890-68d0-40fd-9ee3-627c40cab509' 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='Buffer_data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp_Found' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Cir_Buffer_Data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Loop' 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>
				<variable public='0' >
					<def class_type='variable' name='Flag' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Display' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='x = 0' />
							<exp exp='y = 2' />
						</command>
						<command class_type='loop' title='Loop' type='2' exp='5' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
									<argument exp='x' />
									<argument exp='y' />
								</command>
								<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='GetByteWithTimeout' >
									<return exp='Buffer_data' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintAscii' >
									<argument exp='Buffer_data' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='x = x + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LoadBuffWait' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Looking for temp&quot;' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='ret = 0' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='GetByteWithTimeout' >
									<return exp='Buffer_data' />
								</command>
								<command class_type='comment' title='' comment='+IPD,100:&lt;span id=&quot;ctl00_ContentMain_dlParams_ctl01_lblPValue&quot;&gt;&lt;b&gt;&lt;font size=&quot;6&quot;&gt;22.8&amp;deg;C&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;CLOSED' textarea='12,0,12,0' />
								<command class_type='comment' title='' comment='I had some luck I&apos;m getting &gt;22.8 on the display.' textarea='12,0,12,0' />
								<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='WaitForValue' >
									<return exp='ret' />
									<argument exp='&quot;6\x22\x3E&quot;' />
									<argument exp='3' />
									<argument exp='0' />
									<argument exp='10' />
								</command>
								<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='PutByte' >
									<argument exp='Buffer_data' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='ret' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='Display' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ConnectTS' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='delay' title='Delay' exp='500' type='1' />
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Connect Thingspeak  &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='WLAN_ESP8266' macro='ClientConnect' >
							<return exp='ret' />
							<argument exp='0' />
							<argument exp='&quot;api.thingspeak.com&quot;' />
							<argument exp='80' />
						</command>
						<command class_type='decision' title='Decision' exp='ret' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Connection made     &quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='5' type='2' />
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Clear' />
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Sending data request&quot;' />
								</command>
								<command class_type='call' title='Request URL demo/test.txt' component='WLAN_ESP8266' macro='ClientSendRequest' >
									<argument exp='&quot;GET https://api.thingspeak.com/apps/thinghttp/send_request?api_key=71EFXGGWEU81ZFFA\r\n\r\n&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Request sent        &quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Fail to connect     &quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Flag = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='Initialise' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='Connect and get temp' textarea='142,25,142,25' />
								<command class_type='loop' title='Loop' type='0' exp='Flag = 0' start='0' >
									<flowline >
										<command class_type='call' title='Call Macro' macro='JoinAP' >
											<return exp='Flag' />
										</command>
										<command class_type='decision' title='Decision' exp='Flag = 0' swap='0' >
											<flowline >
												<command class_type='delay' title='Delay' exp='30' type='2' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop' type='0' exp='Flag = 0' start='0' >
									<flowline >
										<command class_type='call' title='Call Macro' macro='ConnectTS' >
											<return exp='Flag' />
										</command>
										<command class_type='decision' title='Decision' exp='Flag = 0' swap='0' >
											<flowline >
												<command class_type='delay' title='Delay' exp='30' type='2' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' exp='5' type='2' />
								<command class_type='call' title='Call Macro' macro='LoadBuffWait' />
								<command class_type='decision' title='Decision' exp='Flag' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
											<argument exp='&quot;String found ok    &quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
											<argument exp='&quot;String not found   &quot;' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' exp='10' type='2' />
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
									<argument exp='0' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Waiting 5 minutes&quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='300' type='2' />
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
									<argument exp='0' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Reading Again      &quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='JoinAP' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Join Access Point   &quot;' />
						</command>
						<command class_type='call' title='Connect To Access Point' component='WLAN_ESP8266' macro='ConnectToSSID' >
							<return exp='ret' />
							<argument exp='&quot;Radioroom.net&quot;' />
							<argument exp='&quot;pallaslyndale2323&quot;' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' exp='ret' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Joined OK           &quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_4x20' macro='PrintString' >
									<argument exp='&quot;Fail                &quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='a2b40602-5421-4e2f-ba82-96db1be51d69' vmin='1' vmaj='1' codename='lcd_4x20' x='64' y='104' z='3.575' 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='1' 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 class_type='ref' guid='e1bb4679-58ef-40dc-8d09-306ada46f7bf' vmin='7' vmaj='1' codename='WLAN_ESP8266' x='-56' y='104' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='RxBufferSize' data='128' />
					<value target='ScanBufferSize' data='100' />
					<value target='ResetMode' data='000' />
					<value target='Termination' data='001' />
					<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='LineDelay' data='100' />
					<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' />
					<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' />
					<value target='ESP_SEND_OK' data='SEND OK' />
					<value target='ESP_GET_APIP' data='+CIFSR:APIP,\&quot;' />
					<value target='ESP_APIP_OK' data='OK' />
					<value target='ESP_CON_TO_SSID_CONFIRM' data='OK' />
					<value target='ESP_CLIENT_CONNECTED' data='CONNECT' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='4' vmaj='1' codename='CircularBuffer1' x='0' y='0' z='0' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='1' lighting='2' brightness='0' perspective='0' >
		<background rgb='6908265' 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='0' />
		<table rgb='7360576' img='' style='0' size='40' />
		<camera xe='0' ye='0' ze='300' 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---------------------wAAAAAUAAAADgUAAD0CAAA' zoom='75' scrollx='0' scrolly='630' flags='0' />
		<view type='0' name='Display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAADgUAAD0CAAA' zoom='75' scrollx='0' scrolly='49' flags='0' />
		<view type='0' name='LoadBuffWait' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAADgUAAD0CAAA' zoom='75' scrollx='0' scrolly='210' flags='0' />
		<view type='0' name='ConnectTS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAADgUAAD0CAAA' zoom='75' scrollx='0' scrolly='354' flags='0' />
		<view type='0' name='JoinAP' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAADgUAAD0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
