A gateway between a zigbee WSN and a database. Communication with the database uses HTTP requests and XML content. Communication with the WSN uses RS232 serial port to send out packets to a zigbee device connected to a PC.