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:
2024-08-28 11:56:36 +03:00
parent 33fc334077
commit e6c8714857
10 changed files with 113 additions and 66 deletions

View File

@@ -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")