saman_artorious
11th June 2012, 08:12
void rs485::rs485DataAquisition(QByteArray data) //0-SubSystem---------1-Pid--------2-Value
{
QByteArray receivedData;
unsigned char address;
qDebug() << "rs485DataAquisition()" << data.toHex();
if(data.toHex() < "0x06")
if( data.toHex() < _ENGINEROOM_SUBS )
{//Engine Compartment Elements
qDebug() << "Engine Compartment Elements";
if(data.size() == 1)
{
qDebug() << "Reading request..";
if(rs485WriteData(_READ_ENGINEADDRESS, data.toHex())) // I get the error here, the second parameter of this function is unsigned char
{
rs485Delay();
qDebug() << "NOW -> rs485CheckAck()";
{
QByteArray receivedData;
unsigned char address;
qDebug() << "rs485DataAquisition()" << data.toHex();
if(data.toHex() < "0x06")
if( data.toHex() < _ENGINEROOM_SUBS )
{//Engine Compartment Elements
qDebug() << "Engine Compartment Elements";
if(data.size() == 1)
{
qDebug() << "Reading request..";
if(rs485WriteData(_READ_ENGINEADDRESS, data.toHex())) // I get the error here, the second parameter of this function is unsigned char
{
rs485Delay();
qDebug() << "NOW -> rs485CheckAck()";