Page 1 of 1
Version 2.8 issues..
Posted: Tue May 24, 2016 11:32 am
by pbreed
We have found two significant issues in 2.8.
One in the ethernet Driver for all 5441X parts, and one in TCP that effects all devices.
We will be putting together 2.8.1 some time in the next week... expect a release in about a week.
We should also do a 2.7.6 a few days after that.
Paul
Re: Version 2.8 issues..
Posted: Thu May 26, 2016 5:47 pm
by ecasey
One more thing to look at:
in 2.8.0 ostringstream is having trouble with floats and doubles.
This code:
Code: Select all
ostringstream JSON;
string Cvalue = "(=)";
string Text = "Wind Direction";
int Precision = 2;
string UOM = " MPH";
float Value = 7.212;
while (1) {
JSON.str("");
JSON << "{\"SENSOR\" : \""
<< Text
<< "\","
<< "\"VALUE\" : \""
<< Cvalue
<< setiosflags(std::ios::fixed)
<< setprecision(Precision)
<< Value
<< UOM
<<"\"}"
;
iprintf("\n%s\n",JSON.str().c_str());
OSTimeDly(TICKS_PER_SECOND*20);
}
outputs:
{"SENSOR" : "Wind Direction","VALUE" : "(=)f MPH"}
Note the "f" where the "7.21" should be. It does this for doubles and floats. Ints are handled correctly.
If I comment out the setiosflags(std::ios::fixed), the "f" becomes a "g".
Insights?
Re: Version 2.8 issues..
Posted: Fri May 27, 2016 11:05 am
by dciliske
Uh... Right. This is weird. Thanks for the heads up.
Re: Version 2.8 issues..
Posted: Fri May 27, 2016 1:34 pm
by dciliske
Looks like this is probably an issue with the C++ STL. Not sure whether it's a bug in the version we used or a miscompilation.
Re: Version 2.8 issues..
Posted: Fri May 27, 2016 7:44 pm
by pbreed
We have a fix for the stream stuff... ask on support....
Should have a 2.8.1 beta early next week..