def on_message(client, userdata, msg):
	print(msg.topic+" "+str(msg.payload))
	if msg.payload in 'ON':
		pinSet(pinLedSw,True)
	if 'OFF' in msg.payload:
		pinSet(pinLedSw,False)
	sleep(0.1)
	state = pinRead(pinLedRd)
	if state:
		sstate = 1
	else:
		sstate = 0
	client.publish("home/study/PiLED/state", sstate)

#def on_disconnect(client, userdata, rc):
#	if rc != 0:
#		pass
#	client.connect("10.0.0.16", 1883, 60)
dataset/ETHPy150Open NelisW/myOpenHab/openhabfiles/mqttPubPiLED.py/on_message/swapped operands of `in`