Add the possibility to subscribe an id or a pgn 09/21409/10
authorArthur Guyader <arthur.guyader@iot.bzh>
Fri, 24 May 2019 10:16:57 +0000 (12:16 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 26 Jun 2019 16:06:54 +0000 (18:06 +0200)
commit0ccfb70f9122ea73ff198f3000cf11be12bcc9d2
treee184d62322c7322ff7892ca5a09ca8af827c6bda
parent2f60d294b3fa4e243fa67a738f9b82a0b428a7fc
Add the possibility to subscribe an id or a pgn

The commit allows at the time of subscription to do:

-> low-can subscribe {"id": 48}
-> low-can subscribe {"pgn": 61442}

The generation of event_filter has been extracted in a separate function.

Bug-AGL: SPEC-2386

Change-Id: I592e668c63be448562b27c81fcdc111cd34f3676
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/binding/application.cpp
low-can-binding/binding/application.hpp
low-can-binding/binding/low-can-cb.cpp