aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Csete <oz9aec@gmail.com>2016-10-01 12:57:17 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2017-02-27 22:26:09 +0100
commit0dc8154f087a0b2b9b2e53351592d16e3c278786 (patch)
tree2c75f275a5b02e9f90f1e7d0d5087f94fda49230
parent2a2236cc9e97581e59cfc8018bd03d90659e6acc (diff)
rfspace: Wait 10 ms before sending queries to device.
This is necessary to esatablish a working connection to the RFSpace CloudIQ. Without this delay the radio will not be ready and we never receive any response to the queries and the radio will close the connection after 5 seconds.
-rw-r--r--lib/rfspace/rfspace_source_c.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rfspace/rfspace_source_c.cc b/lib/rfspace/rfspace_source_c.cc
index 93d645d..f9c587d 100644
--- a/lib/rfspace/rfspace_source_c.cc
+++ b/lib/rfspace/rfspace_source_c.cc
@@ -344,6 +344,7 @@ rfspace_source_c::rfspace_source_c (const std::string &args)
}
/* request & print device information */
+ usleep(10000);
std::vector< unsigned char > response;