#include "NexProgressBar.h" NexProgressBar::NexProgressBar(NexPid pid, NexCid cid, char *name) :NexTouch(pid, cid, name) { } bool NexProgressBar::getValue(uint32_t *number) { String cmd = String("get "); cmd += getObjName(); cmd += ".val"; sendCommand(cmd.c_str()); return recvRetNumber(number); } bool NexProgressBar::setValue(uint32_t number) { char buf[10] = {0}; String cmd; utoa(number, buf, 10); cmd += getObjName(); cmd += ".val="; cmd += buf; sendCommand(cmd.c_str()); return recvRetCommandFinished(); }