void makeResourceManager()
Generate resource manager
void calculateResource(int thing_id)
Calculate resource usage of things
thing_id - Thing number
void calculateIdleBattery(int thing_id)
Calculate the usage of idle batteries
thing_id - Thing number
void calculateBattery(int thing_id)
Calculate the IDLE, SENSOR, and BLUETOOTH usage of things
thing_id - Thing number
void calculateCPU(int thing_id, unsigned long sampling_count)
Calculate the cpu usage of things
thing_id - Thing number
sampling_count - number of calculation
void calculateTransmissionPower(int thing_id)
Calculate the transmission power of things
thing_id - Thing number
void calculateSensingPower(struct _sensor* sensor, int thing_id)
Calculate the sensing power consumption
sensor - Sensor list
thing_id - Thing number
void calculateBandwidth(int thing_id)
Calculate the bandwidth usage of things
thing_id - Thing number
void setResourceManagerStatus(int status)
Set resource manager status
status - TRUE, FALSE(pause)
void setUptime()
Set the time the thing creation
void calculateUptime(int thing_id)
Calculate the time of operation of a thing
thing_id - Thing number