Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121320647
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, Jul 10, 01:24
Size
614 B
Mime Type
text/x-c
Expires
Sat, Jul 12, 01:24 (2 d)
Engine
blob
Format
Raw Data
Handle
27310134
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