def create_web_socket_tags(whid):
	
	logger = system.util.getLogger("%s-Create-Web-Socket-Tags" % (whid))
	if whid != "" and whid != None:
		provider = "[%s_SCADA_TAG_PROVIDER]" % (whid) 
		tag_paths = {"aws_data":{"name":"aws_data",  "valueSource": "memory", 
								"dataType": "String", "value" : "{}"},
					"close_socket":{"name":"close_socket",  "valueSource": "memory", 
									"dataType": "Boolean", "value" : True},
					"device_count":{"name":"device_count",  "valueSource": "memory", 
									"dataType": "String", "value" : "{}"},
					"IdToStatus":{"name":"IdToStatus",  "valueSource": "memory", 
									"dataType": "String", "value" : "{}"},
					"wbsckt_heartbeat_interval":{"name":"wbsckt_heartbeat_interval",  "valueSource": "memory", 
									"dataType": "DateTime", "value" : 0},
					"wbsckt_logging":{"name":"wbsckt_logging",  "valueSource": "memory", 
									"dataType": "Boolean", "value" : False},
					"wbsckt_messages_send":{"name":"wbsckt_messages_send",  "valueSource": "memory", 
									"dataType": "String", "value" : "{}"},
					"thread_id":{"name":"thread_id",  "valueSource": "memory", 
										   "dataType": "String", "value" : ""},
					"wbsckt_running":{"name":"wbsckt_running",  "valueSource": "memory", 
									"dataType": "Boolean", "value" : False},
					"download":{"name":"download",  "valueSource": "memory",
									"dataType": "String", "value" : ""}}
		
		for k,v in tag_paths.items():
			if not system.tag.exists("%sSystem/%s" % (provider, k)):
				base_path = "%s/System" % (provider)
				system.tag.configure(base_path, v)
				logger.info("Created tag %s" % (k))