git-svn-id: svn://db.shs.com.ru/pip@778 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
24
main.cpp
24
main.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user