Skip to content

Commit

Permalink
split livolo packet to addr and cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
avp-avp committed Dec 18, 2016
1 parent ec9c2e1 commit b9047de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion librf/RFProtocolLivolo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,11 @@ string CRFProtocolLivolo::DecodePacket(const string&packet)
}

return bits;
}
}

string CRFProtocolLivolo::DecodeData(const string& bits)
{
int addr = bits2long(bits, 0, 16);
int cmd = bits2long(bits, 16, 7);

}
1 change: 1 addition & 0 deletions librf/RFProtocolLivolo.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class RFLIB_API CRFProtocolLivolo :

virtual string getName() { return "Livolo"; };
virtual string DecodePacket(const string&);
virtual string DecodeData(const string&); // Ïðåîáðàçîâàíèå áèò â äàííûå

};

0 comments on commit b9047de

Please sign in to comment.