TestPodServer

Test file to send UDP packets to the dashboard
Source:
Author:
  • Eric Udlis

Methods

(inner) getRandomIntInclusive(min, max)

Source:
Gets a random integer between min and max inclusive
Parameters:
Name Type Description
min Number Minimum number
max Number Maximum number

(inner) getRandomValue()

Source:
Gets a random value between 0 and 255

(inner) heartbeat()

Source:
Sends a heartbeat ping to the dashboard

(inner) sendData(data)

Source:
Sends a message to the dashboard over UDP
Parameters:
Name Type Description
data String the message to send

(inner) sendIncreasingData()

Source:
Sends increasing data to the dashboard

(inner) sendJSON(object)

Source:
Sends an object to the dashboard over UDP
Parameters:
Name Type Description
object Object Object to send

(inner) sendSinusodalData()

Source:
Sends sinusodial data to the dashboard

(inner) sendSpecificData(data)

Source:
Sends a specific number to the dashboard
Parameters:
Name Type Description
data Number Data to fill in each sensor

(inner) sendTestData()

Source:
Sends a packet to the dashboard containing random data