WSN format

WSN log format

The format for each interface_wsn message is:

  • node_type (int): The type of WSN node
  • node_id (int): The ID of the WSN node
  • node_parent_id (int): The ID of the WSN node's parent (if existing)
  • data_packet : The WSN node's data packet
    • light (float): light measurement from a light sensor
    • mic (float): accoustic measurement from a microphone
    • accel_x (float): acceleration on X-axis from an acceleration sensor
    • accel_y (float): acceleration on Y-axis from an acceleration sensor
    • accel_z (float): acceleration on Z-axis from an acceleration sensor
    • magn_x (float): magnetic measurement on X-axis from a magnetometer
    • magn_y (float): magnetic measurement on Y-axis from a magnetometer
    • magn_z (float): magnetic measurement on Z-axis from a magnetometer
    • temperature (float): temperature measurement from a temperature sensor
    • battery (float): remaining battery voltage