<root>
<document scada='0' schema='102' license='1,viktor_aust,WE9E5E' title='' description='' fcversion='524802' target='AVR.ATMEGA.ATMEGA328P' >
	<config data='!0,ff!8,de!10,5%0,3f%6,1%7,1' clkspd='1000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='BOO1_String' />
		<watch expr='bool_total' />
		<watch expr='retval' />
		<watch expr='return2' />
		<watch expr='receive' />
		<watch expr='data' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='167' />
			<data name='CalculatedCommsDelay' value='167' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' 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' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='switch_button' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='voltage' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='open' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='check4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='check3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='check1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='receive_switch' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sensor_flag' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='receive' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='leave' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='read' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='auto' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BOO1_String' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='light' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='switch' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='retval' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='income_switch' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flag_ping' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flag_status' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ping' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temperature' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='light_set' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='error' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='dh22_sample' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='light_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='auto_feedback' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='1' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SWITCH_BYTE' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flag_switch' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='humidity' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BOO2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='switch_position' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='1' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BOO1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='receive2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lightstatus' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='1' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flag' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='check' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='button' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
							<exp exp='switch_button = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='button_off' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
							<exp exp='switch_button = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Dht1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='SampleSensor' >
							<return exp='dh22_sample' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='dh22_sample = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='GetTempString' >
									<return exp='temperature' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
									<argument exp='&quot;temperature1&quot;' />
									<argument exp='temperature' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='dh22_sample = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='No reply' textarea='12,0,12,0' cmdcolor='16777120' cmdcolor_sec='16777120' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='dh22_sample = 2' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='CRC error
' textarea='12,0,12,0' cmdcolor='16777120' cmdcolor_sec='16777120' />
							</flowline>
							<flowline />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' disable='1' cmdcolor='16760919' cmdcolor_sec='16760919' exp='0' >
							<case >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='GetTempString' >
										<return exp='temperature' />
									</command>
									<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
										<argument exp='&quot;temperature1&quot;' />
										<argument exp='temperature' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline />
							</case>
							<case exp='2' >
								<flowline />
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DHT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='SampleSensor' >
							<return exp='dh22_sample' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16760919' cmdcolor_sec='16760919' exp='0' >
							<case >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='GetTempString' >
										<return exp='temperature' />
									</command>
									<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
										<argument exp='&quot;temperature1&quot;' />
										<argument exp='temperature' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
										<argument exp='&quot;temperature1&quot;' />
										<argument exp='&quot;com&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
										<argument exp='&quot;temperature1&quot;' />
										<argument exp='&quot;check&quot;' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='eeprom1' macro='Read' >
							<return exp='flag_switch' />
							<argument exp='10' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='WLAN_ESP8266' macro='Initialise' >
							<return exp='BOO2' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='152,-9,152,-9' cmdcolor='8437760' cmdcolor_sec='8437760' component='WLAN_ESP8266' macro='ConnectToSSID' >
							<return exp='BOO2' />
							<argument exp='&quot;COSMOTE-065CB4&quot;' />
							<argument exp='&quot;3RkDrKzA5Sa4sAex&quot;' />
							<argument exp='50' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,464,0' cmdcolor='8437760' cmdcolor_sec='8437760' component='NetworkComms1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,417,0' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Connect' >
							<return exp='BOO1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Subscribe' >
							<argument exp='&quot;light_switch3&quot;' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16760919' cmdcolor_sec='16760919' type='0' exp='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
									<exp exp='flag_ping = flag_ping + 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='flag_ping &gt; 30' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
											<exp exp='flag_ping = 0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Ping' >
											<return exp='ping' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='ping = 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='eeprom1' macro='Read' >
													<return exp='flag_switch' />
													<argument exp='10' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='WLAN_ESP8266' macro='Initialise' >
													<return exp='BOO2' />
												</command>
												<command class_type='call' title='Call Component Macro' textarea='152,-9,152,-9' cmdcolor='8437760' cmdcolor_sec='8437760' component='WLAN_ESP8266' macro='ConnectToSSID' >
													<return exp='BOO2' />
													<argument exp='&quot;COSMOTE-065CB4&quot;' />
													<argument exp='&quot;3RkDrKzA5Sa4sAex&quot;' />
													<argument exp='200' />
												</command>
												<command class_type='call' title='Call Component Macro' textarea='36,0,464,0' cmdcolor='8437760' cmdcolor_sec='8437760' component='NetworkComms1' macro='Initialise' />
												<command class_type='call' title='Call Component Macro' textarea='36,0,417,0' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Initialise' />
												<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Connect' >
													<return exp='BOO1' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Subscribe' >
													<argument exp='&quot;light_switch3&quot;' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
									<exp exp='flag = flag + 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='flag &gt; 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
											<exp exp='sensor_flag = sensor_flag + 1' />
											<exp exp='flag = 0' />
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16760919' cmdcolor_sec='16760919' exp='sensor_flag' >
											<case >
												<flowline />
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
														<argument exp='&quot;switch_state3&quot;' />
														<argument exp='switch_position' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
														<argument exp='&quot;light_status3&quot;' />
														<argument exp='lightstatus' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='call' title='Call Macro' cmdcolor='8437760' cmdcolor_sec='8437760' macro='Dht1' />
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='SampleSensor' >
														<return exp='dh22_sample' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='DHT22' macro='GetHumidityString' >
														<return exp='humidity' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
														<argument exp='&quot;humidity1&quot;' />
														<argument exp='humidity' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
														<exp exp='sensor_flag = 0' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Read' >
											<return exp='read' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='read != 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='GetPayload' >
													<argument exp='receive' />
													<argument exp='1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='Compare$ (receive,&quot;1&quot;,0) = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
															<exp exp='flag_switch = 1' />
															<exp exp='open = 1' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='eeprom1' macro='Write' >
															<argument exp='10' />
															<argument exp='flag_switch' />
														</command>
														<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='1' />
														<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='1' />
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='Compare$ (receive,&quot;2&quot;,0) = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
															<exp exp='flag_switch = 2' />
															<exp exp='open = 2' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='eeprom1' macro='Write' >
															<argument exp='10' />
															<argument exp='flag_switch' />
														</command>
														<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='0' />
														<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='0' />
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='input' title='Input' cmdcolor='8404224' cmdcolor_sec='8404224' mode='1' port='1048578' mask='16' exp='switch_button' />
												<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='switch_button = 0' swap='0' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='check3 = 0' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																	<exp exp='check3 = 1' />
																	<exp exp='check4 = 0' />
																	<exp exp='switch_position = &quot;1&quot;' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
																	<argument exp='&quot;switch_state3&quot;' />
																	<argument exp='switch_position' />
																</command>
															</flowline>
															<flowline />
														</command>
														<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16760919' cmdcolor_sec='16760919' exp='flag_switch' >
															<case >
																<flowline >
																	<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																		<exp exp='open = 1' />
																	</command>
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='1' />
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='1' />
																</flowline>
															</case>
															<case exp='1' >
																<flowline >
																	<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																		<exp exp='open = 1' />
																	</command>
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='1' />
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='1' />
																</flowline>
															</case>
															<case exp='2' >
																<flowline >
																	<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																		<exp exp='open = 0' />
																	</command>
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='0' />
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='0' />
																</flowline>
															</case>
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='switch_button = 1' swap='0' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='check4 = 0' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																	<exp exp='check4 = 1' />
																	<exp exp='check3 = 0' />
																	<exp exp='switch_position = &quot;0&quot;' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
																	<argument exp='&quot;switch_state3&quot;' />
																	<argument exp='switch_position' />
																</command>
															</flowline>
															<flowline />
														</command>
														<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16760919' cmdcolor_sec='16760919' exp='flag_switch' >
															<case >
																<flowline >
																	<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																		<exp exp='open = 0' />
																	</command>
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='0' />
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='0' />
																</flowline>
															</case>
															<case exp='1' >
																<flowline >
																	<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																		<exp exp='open = 0' />
																	</command>
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='0' />
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='0' />
																</flowline>
															</case>
															<case exp='2' >
																<flowline >
																	<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
																		<exp exp='open = 1' />
																	</command>
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048578' mask='32' exp='1' />
																	<command class_type='output' title='Output' cmdcolor='10848768' cmdcolor_sec='10848768' mode='1' port='1048577' mask='1' exp='1' />
																</flowline>
															</case>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='open = 1 AND check = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
													<exp exp='check = 1' />
													<exp exp='check1 = 0' />
													<exp exp='lightstatus = &quot;1&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
													<argument exp='&quot;light_status3&quot;' />
													<argument exp='lightstatus' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16760919' cmdcolor_sec='16760919' exp='open = 0 AND check1 = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16777146' cmdcolor_sec='16777146' >
													<exp exp='check1 = 1' />
													<exp exp='check = 0' />
													<exp exp='lightstatus = &quot;0&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='8437760' cmdcolor_sec='8437760' component='MQTT_Client1' macro='Publish' >
													<argument exp='&quot;light_status3&quot;' />
													<argument exp='lightstatus' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='459c9cfb-82e3-40ad-9456-54fc40ba5e6c' vmin='1' vmaj='1' codename='MQTT_Client1' x='-60' 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' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='HOST' data='192.168.1.16' />
					<value target='PORT' data='1883' />
					<value target='CLIENT' data='' />
					<value target='TIMEOUT' data='1000' />
					<value target='KEEP_ALIVE' data='60' />
					<value target='NETWORK_COMPONENT' data='NetworkComms1' />
					<value target='AUTHENTICATION' data='000' />
					<value target='NAME' data='' />
					<value target='PASSWORD' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='91049bf5-2436-42dc-947a-c30c86463d98' vmin='2' vmaj='1' codename='NetworkComms1' x='10' y='0' z='1.53' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Component' data='WLAN_ESP8266' />
					<value target='RemapIndex' data='20' />
					<value target='Status' data='Supported - In Testing' />
					<value target='Sim' data='0' />
					<value target='SimControl' data='000' />
					<value target='NetworkInterface' data='000' />
					<value target='IPAddress' data='192.168.1.100' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e1bb4679-58ef-40dc-8d09-306ada46f7bf' vmin='2' vmaj='2' codename='WLAN_ESP8266' x='80' 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' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='RxBufferSize' data='400' />
					<value target='ScanBufferSize' data='180' />
					<value target='ResetMode' data='000' />
					<value target='Termination' data='001' />
					<value target='cal_uart1::CHANNEL' data='001' />
					<value target='cal_uart1::BAUD_LIST' data='004' />
					<value target='cal_uart1::BAUD' data='9600' />
					<value target='cal_uart1::TX' data='$PORTD.1' />
					<value target='cal_uart1::OutputPins' data='000' />
					<value target='cal_uart1::TXAlt' data='0' />
					<value target='cal_uart1::RX' data='$PORTD.0' />
					<value target='cal_uart1::InputPins' data='085' />
					<value target='cal_uart1::RXAlt' data='0' />
					<value target='RESET' data='$PORTC.1' />
					<value target='cal_uart1::FLOWEN' data='000' />
					<value target='cal_uart1::RTS' data='$PORTC.4' />
					<value target='cal_uart1::CTS' data='$PORTC.5' />
					<value target='UARTidx' data='001' />
					<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='Outgoing_Count' data='001' />
					<value target='Out_Len_0' data='20' />
					<value target='Out_Len_1' data='20' />
					<value target='Out_Len_2' data='20' />
					<value target='Out_Len_3' data='20' />
					<value target='Out_Len_4' data='20' />
					<value target='Out_Len_5' data='20' />
					<value target='Out_Len_6' data='20' />
					<value target='Out_Len_7' data='20' />
					<value target='Out_Len_8' data='20' />
					<value target='Out_Len_9' data='20' />
					<value target='Out_Len_10' data='20' />
					<value target='Out_Len_11' data='20' />
					<value target='Incoming_Count' data='001' />
					<value target='In_Len_0' data='20' />
					<value target='In_Len_1' data='20' />
					<value target='In_Len_2' data='20' />
					<value target='In_Len_3' data='20' />
					<value target='In_Len_4' data='20' />
					<value target='In_Len_5' data='20' />
					<value target='label' data='WLAN ESP8266' />
					<value target='SimMethod' data='000' />
					<value target='cal_uart1::ScopeTraces' data='0' />
					<value target='cal_uart1::ConsoleData' data='0' />
					<value target='cal_uart1::ConsoleColumns' data='64' />
					<value target='cal_uart1::DataSource' data='000' />
					<value target='cal_uart1::com_port' data='001' />
					<value target='cal_uart1::Injector' data='000' />
					<value target='MIAC' data='0' />
					<value target='RFPOWER' data='' />
					<value target='RemapIndex' data='20' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='95a1525b-7e03-4836-8c09-59bf174f603b' vmin='2' vmaj='1' codename='DHT22' x='50' y='110' z='3.32' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='dpin' data='$PORTD.2' />
					<value target='csum' data='1' />
					<value target='ClockAdjust' data='000' />
					<value target='Nop30us' data='137.625610' />
					<value target='DeviceFamily' data='AVR' />
					<value target='InstPerMicro' data='4.915200' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='30' y='40' z='12.045' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='1024 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&quot;Hello&quot;' />
					<value target='InitValsParsed' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&apos;H&apos;,&apos;e&apos;,&apos;l&apos;,&apos;l&apos;,&apos;o&apos;' />
					<value target='ResetValues' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='9.43688' ye='-35.8549' ze='252.387' xt='9.43688' yt='-35.8549' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='1' lighting='2' brightness='0' perspective='1' >
		<background rgb='32768' img='' style='0' />
		<table rgb='8404224' img='' style='0' size='25' />
		<camera xe='31.7152' ye='-74.9925' ze='290.27' xt='31.7152' yt='-74.9925' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Dht1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAnQQAAH4DAAA' zoom='75' scrollx='0' scrolly='100' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAnQQAAH4DAAA' zoom='70' scrollx='1723' scrolly='1475' flags='0' />
		<view type='0' name='DHT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAnQQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='button_off' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAnQQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='button' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAnQQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
