The hub library provides basic functionalities to get information about the hub as well as pause the hub's actions for a specified time in milliseconds. The information available includes the device UUID number, the Hardware ID number, and the temperature of the hub.
None
integervalue
The time in milliseconds to Sleep
1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
hb:Sleep(1000)
text
None
1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
text deviceID = hb:GetDeviceUUID()
text
None
1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
text hardwareID = hb:GetHardwareID()
integer
None
1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
hb:PowerOff()
integer
None
1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
integer currentTemperature = hb:GetTemperature()