version 4.1.0
maybe fix hang on PIEthernet::interrupt() replace piLetobe with piChangeEndian: * piChangeEndianBinary * piChangeBinary * piChangedBinary PIDiagnostics::start now accept PISystemTime instead of number add PITimer::start(PISystemTime, std::function<void()>) overload
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -28,6 +28,11 @@ void tfunc4(int delim) {
|
||||
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
uint v = 0xaabbccdd;
|
||||
piCout << Hex << v << piChangedEndian(v);
|
||||
piChangeEndianBinary(&v, sizeof(v));
|
||||
piCout << Hex << v << piChangedEndian(v);
|
||||
return 0;
|
||||
/*PIPackedTCP * tcp_s =
|
||||
PIIODevice::createFromFullPath("ptcp://s::8000")->cast<PIPackedTCP>(); // new PIPackedTCP(PIPackedTCP::Server, {"0.0.0.0:8000"});
|
||||
PIPackedTCP * tcp_c = PIIODevice::createFromFullPath("ptcp://c:127.0.0.1:8000")
|
||||
|
||||
Reference in New Issue
Block a user