Open RafaelKa opened 6 years ago
Thought on semething like this:
the user could use in his packet consumer method the Protocol to to transform the packets to concrete packet implementation
const ESP3 = new Protocol() const translatedPacket = ESP3.transformToConcretePacket({header: {packetType: 1}}) assert.instanceOf(translatedPacket, PacketTypes.RADIO_ERP1)
Thought on semething like this:
the user could use in his packet consumer method the Protocol to to transform the packets to concrete packet implementation