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
Version 2.8 issues..
Re: Version 2.8 issues..
One more thing to look at:
in 2.8.0 ostringstream is having trouble with floats and doubles.
This code:
outputs:
If I comment out the setiosflags(std::ios::fixed), the "f" becomes a "g".
Insights?
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);
}
Note the "f" where the "7.21" should be. It does this for doubles and floats. Ints are handled correctly.{"SENSOR" : "Wind Direction","VALUE" : "(=)f MPH"}
If I comment out the setiosflags(std::ios::fixed), the "f" becomes a "g".
Insights?
Re: Version 2.8 issues..
Uh... Right. This is weird. Thanks for the heads up.
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
Re: Version 2.8 issues..
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.
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
Re: Version 2.8 issues..
We have a fix for the stream stuff... ask on support....
Should have a 2.8.1 beta early next week..
Should have a 2.8.1 beta early next week..