<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='SSIDCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SSIDName' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='index' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SigStrength' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EncryptMode' 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='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Startup the WIFI module and then do a scan for WIFI enabled
Access Points within range. Runs in a loop first scanning and then
listing the various detected access points including their encryption
type and signal strength.' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Init, &quot;' />
						</command>
						<command class_type='call' title='Startup WIFI' component='WLAN_ESP8266' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;ID Scan&quot;' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Scan For WIFI Enabled APs' component='WLAN_ESP8266' macro='ScanForSSID' >
									<return exp='SSIDCount' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Count = &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='SSIDCount' />
								</command>
								<command class_type='delay' title='Delay' exp='2' type='2' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='Index = 0' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='Index &lt; SSIDCount' >
									<flowline >
										<command class_type='call' title='Collect SSID Name' component='WLAN_ESP8266' macro='ReadSSIDFromScan' >
											<return exp='SSIDName' />
											<argument exp='index' />
										</command>
										<command class_type='call' title='Collect Signal Strength' component='WLAN_ESP8266' macro='ReadSignalStrengthFromScan' >
											<return exp='SigStrength' />
											<argument exp='Index' />
										</command>
										<command class_type='call' title='Collect Encryption Type' component='WLAN_ESP8266' macro='ReadEncryptionModeFromScan' >
											<return exp='EncryptMode' />
											<argument exp='Index' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
											<argument exp='Index' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot; -&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
											<argument exp='SigStrength' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;dB &quot;' />
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='EncryptMode' >
											<case >
												<flowline />
											</case>
											<case exp='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot;Open&quot;' />
													</command>
												</flowline>
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot;WEP&quot;' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot;WPA&quot;' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot;WPA2&quot;' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot;WPA/2&quot;' />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='SSIDName' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='Index = Index + 1' />
										</command>
										<command class_type='delay' title='Delay' exp='2' type='2' />
									</flowline>
								</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='100' />
					<value target='ScanBufferSize' data='100' />
					<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='004' />
					<value target='TIMEOUT' data='4' />
					<value target='LineDelay' data='100' />
					<value target='name1' data='index.htm' />
					<value target='html1' data='&lt;html&gt;' />
					<value target='name2' data='page2.htm' />
					<value target='html2' data='&lt;html&gt;' />
					<value target='name3' data='page3.htm' />
					<value target='html3' data='&lt;html&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='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' />
				</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='104.811' 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---------------------wAAAAAUAAAArQQAAJEDAAA' zoom='75' scrollx='0' scrolly='257' flags='0' />
	</layout>
</document>
</root>
