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.
NoneintegervalueThe time in milliseconds to Sleep
1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
hb:Sleep(1000)textNone1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
text deviceID = hb:GetDeviceUUID()textNone1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
text hardwareID = hb:GetHardwareID()integerNone1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
hb:PowerOff()integerNone1
2
3
use Libraries.Robots.Spike.Hub
Hub hb
integer currentTemperature = hb:GetTemperature()