git-svn-id: svn://db.shs.com.ru/pip@778 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-04-16 13:48:13 +00:00
parent c6376002ed
commit 10b70f5acf
8 changed files with 88 additions and 30 deletions

View File

@@ -1,29 +1,7 @@
#include "pip.h"
class Base: public PIObject {
PIOBJECT(Base)
public:
EVENT_HANDLER(void, tick) {piCout << "tick";}
};
int main() {
Base b;
PIConnection c;
c.configureFromConfig("d:/orders/nicirt/bin/spec_core.conf", "core");
//CONNECTU(&t, tickEvent, &b, tick);
piCout << "start ...";
c.start();
//t.start(500);
piSleep(3);
//t.stop();
//delete t;
c.stop();
piCout << "deleted";
/*PIEthernet * eth = PIIODevice::createFromFullPath("eth://UDP:::192.168.0.33:16666")->cast<PIEthernet>();
for (;;) {
eth->send(PIByteArray::fromHex("00112233445566778899"));
piSleep(1.5);
}*/
PISystemInfo::machineID();
return 0;
}