Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F56509120
cellulopoolclient.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Mar 28, 18:25
Size
613 B
Mime Type
text/x-c
Expires
Sat, Mar 30, 18:25 (2 d)
Engine
blob
Format
Raw Data
Handle
16726396
Attached To
R9807 cellulo-lua
cellulopoolclient.cpp
View Options
#include "cellulopoolclient.h"
void CelluloPoolClientWrapper::init_()
{
client = new CelluloRobotPoolClient;
connect(client, &CelluloRobotPoolClient::newRobotFound, this, &CelluloPoolClientWrapper::onNewRobot);
qDebug() << "POOL Object created";
}
void CelluloPoolClientWrapper::deinit_()
{
client->deleteLater();
client = nullptr;
}
CelluloPoolClientWrapper::CelluloPoolClientWrapper()
{
robots_N = 0;
}
void CelluloPoolClientWrapper::onNewRobot(CelluloBluetooth* robot) {
qDebug() << "ATTENTION ROBOT FOUND " << robot->getMacAddr();
robots.push_back(robot);
robots_N++;
}
Event Timeline
Log In to Comment