Add feature ISO TP (multi frames and peer to peer)
[apps/agl-service-can-low-level.git] / low-can-binding / can / message / j1939-message.hpp
index 0d3736f..a513e94 100644 (file)
@@ -67,7 +67,7 @@ class j1939_message_t : public message_t
 
        public:
                j1939_message_t();
-               j1939_message_t(uint32_t maxdlen, uint32_t length, message_format_t format, std::vector<uint8_t>& data, uint64_t timestamp, name_t name, pgn_t pgn, uint8_t addr);
+               j1939_message_t(uint32_t length, std::vector<uint8_t>& data, uint64_t timestamp, name_t name, pgn_t pgn, uint8_t addr);
                uint64_t get_name() const;
                uint32_t get_pgn() const;
                uint8_t get_addr() const;
@@ -75,7 +75,8 @@ class j1939_message_t : public message_t
                bool is_set();
                std::string get_debug_message();
                uint32_t get_id() const;
+               void set_id(const canid_t id);
                struct sockaddr_can get_sockname();
                void set_sockname(struct sockaddr_can sockname);
                void set_sockname(pgn_t pgn, name_t name, uint8_t addr);
-};
+};
\ No newline at end of file