Skip to content

Commit

Permalink
Merge branch 'increase_o3r_set_timeout' into 'main'
Browse files Browse the repository at this point in the history
Increase O3R::Set timeout to 15 seconds

See merge request syntron/support/csr/ifm3d/ifm3d!360
  • Loading branch information
BigBoot committed Feb 6, 2024
2 parents 4a8b728 + 28fb40a commit 0939603
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changes
- Use .deb files in Dockerfile instead of building from sources
- Increase timeout for O3R set calls up to 15s

### Fixed
- Fix installation prefix [issue](https://github.com/ifm/ifm3d/issues/434) from tools
Expand Down
5 changes: 4 additions & 1 deletion modules/device/include/ifm3d/device/o3r.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

namespace ifm3d
{
static const int NET_WAIT_O3R_SET = 10000;
static const int NET_WAIT_O3R_SET =
std::getenv("IFM3D_NET_WAIT_O3R_SET") == nullptr ?
15000 :
std::stoi(std::getenv("IFM3D_NET_WAIT_O3R_SET"));

/** @ingroup Device */
struct IFM3D_DEVICE_EXPORT PortInfo
Expand Down
4 changes: 3 additions & 1 deletion modules/device/src/libifm3d_device/xmlrpc_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

namespace ifm3d
{
const int NET_WAIT = 3000; // millis
const int NET_WAIT = std::getenv("IFM3D_NET_WAIT") == nullptr ?
3000 :
std::stoi(std::getenv("IFM3D_NET_WAIT")); // millis

const std::string XMLRPC_MAIN = "/api/rpc/v1/com.ifm.efector/";

Expand Down

0 comments on commit 0939603

Please sign in to comment.