summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-12-14Added version check to afb-daemon pkg requisiteRomain Forlot1-1/+1
Change-Id: I8cf780dcf4381f3173c185887867e1c0fdb1785b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix: wrong path to the binding fileRomain Forlot1-1/+1
Change-Id: Ief61fa7cf4e9464a497d79197cad043a160e983f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update git modulesRomain Forlot1-0/+0
Change-Id: I2deaa7debe0529ac7d0a769d00b6064ba92bded3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Upgrade app-templatesRomain Forlot1-0/+0
Change-Id: Ib3d9b65a3ddcc1f986321e4d5ada629bb5fccbcf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Match Widget config file value from config.cmakeRomain Forlot1-0/+0
Change-Id: I680ab31fa4ae627741f5b96b9c44059bc19426a3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Migrate to ctl-utilities libraryRomain Forlot19-130/+208
New version of controller as a library. Loading additionnals files from each sections. Change-Id: I4f5e78d0baf9650cb8d1cc1da26f8e1fd73b792c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update .gitignoreRomain Forlot1-0/+1
Change-Id: I8d6b9beb35764e2c95e3cd7ad16c186a0c658c00 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update app-template & use new JSON schema for confRomain Forlot6-51/+65
Change-Id: I6e920ee08ea38f53f5dcc58d58f89cf1ace22f42 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Remove external 3rdparty libraryRomain Forlot112-36829/+0
Downloaded at build time. Change-Id: If15e9bcb4cc7d09cec1837a0ad62e4a3c6beb4e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14LUA lib and bin embedded in projectRomain Forlot137-88/+37125
Change-Id: I1a61b49f55e4daa305800e754a14b6041aa81b34 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Add default receive actionRomain Forlot2-1/+71
Change-Id: Icc23f135d4e65d6de131a60b978677e549738d78 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14CommentRomain Forlot1-0/+3
Change-Id: I92f9d242cd108d8355069a4a63b391a5302d27a8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Builtin plugin integrationRomain Forlot1-0/+21
Change-Id: I285c666c9ac77b6c1efb56406ce0a9cf33ec140f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix uint64_t coming from LUA that don't supportRomain Forlot1-3/+2
Change-Id: Ida74a1f9904e9271ffc4a7c21d24f3b7f6c3f584 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Better deeper signal search on received event.Romain Forlot1-2/+34
Search in received JSON data if we could find a better signal name if the preceding one is too fuzzy Change-Id: I83ba376890155c44d5f29dfe2401627c72539f34 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Enhance list/get verbRomain Forlot2-21/+17
Handle options in a vector. Change-Id: Iafad2d93ea027db054750816750f4d07bd13c5d4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Inheritance of some signals parameters from sourceRomain Forlot6-46/+88
Stores sourceAPI as shared_ptr too. Change-Id: I2dcd919b3053f29812a9bece14feb4f620f23ce3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Better use of strncatRomain Forlot3-9/+9
Change-Id: I89a1ab96280f7502b0e2f21adc30652b96f82932 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Introduce retention setting in place of classRomain Forlot8-42/+50
Be able to tweak retention value for each signal in seconds Change-Id: I1cabe48a2660cdeb2e9b32b277e7c819c6b49bd9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14lua2c completely operationnalRomain Forlot10-38/+54
- Retrieve args from lua call correctly - Correctly push and set function pointer into plugin symbols Change-Id: I12d03e1101c458a042887a67a35a08082bd98f4c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update app-template to make Efence usage optionnalRomain Forlot2-0/+1
Change-Id: I2e991195e08e876497d75d73a55af6899c0aabe4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Make calling lua2c function from lua worksRomain Forlot7-14/+28
Change-Id: I56d78a3fe567d1f7a6c675f6a56473f96d325c85 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update config to simulate real situationRomain Forlot3-16/+4
LUA2C not working... Use diagnostic message from OBD2 values for vehicle_speed Remove action from sources Change-Id: I08bd94bc023320a027a1e050583e5a940e1b2629 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Handle no JSON query object argument passedRomain Forlot1-4/+9
Change-Id: I58204bbee78a16bf6843d395c18190d0e375261a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Add a default behavior to subscribe to API signalsRomain Forlot1-1/+6
By default, if no getSignals action has been configured then a call to api/subscribe will occurs Change-Id: Ic54d7eb7c3117ccc0bf3c9819d14475d9145d61d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Enhance pointer manage and container browsingRomain Forlot12-102/+111
- SourceAPI now holds share_ptr of Signal - Signal are stored in a map<string,signal> that change way to browse the signals - subscribed property included in SourceAPI. - Clean old code - renaming struct SignalValue->signalValue Change-Id: Ic5c28296ddd7197c6562e12fbc91c504c1cc0b4d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14No errors on get if no values has been recordedRomain Forlot3-24/+41
Change-Id: Ib1d5da084b3a39fbfc9816070aba008e3486cfae Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Use C++ string instead of C classic charRomain Forlot1-3/+3
Change-Id: I739a68e98623da4a6962c2d91025e4c0bfc222e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Make observer pattern thread safeRomain Forlot1-21/+26
Protect list using mutex Change way to browse lists using range-based for-loop Change-Id: I3b94269c534e5b2ec6b60828f0283f56bab137ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Implement recursionCheck using observer patternRomain Forlot4-108/+47
Change-Id: Ic404c098f316106abe1918c3cd100ae047f4f555 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Finalize subscription to be a simple relay for nowRomain Forlot9-90/+144
Adding new object holding signals subscribed and afb event that observes Signals using Reactive response observer design pattern Change-Id: I96647d36e0d27c25a399c1b3789621a803a845b6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Migrating to real Observer design pattern usageRomain Forlot3-30/+214
Change-Id: I2fa4e1dc81f5dff852e619a425b8caf26b94b55a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14SubscribeRomain Forlot3-19/+66
Change-Id: I7bbe972254d60f89cb26c98ea8519af087d8ae90 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update README and add doxygen documentationRomain Forlot3-4/+2704
Change-Id: I9c870befd115d3e2fea5aed7258aefdcbe8195e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Beginning client App context handling workRomain Forlot2-24/+54
Change-Id: Ifb21916bfb4c9c1be0fe68c1a88ada342d18ffe4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Batch low-can subscriptionRomain Forlot2-36/+42
Change-Id: Ic1561e34d01be2b15618536fe6ef01066c184520 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Make compile LUA2C functions, binding not workingRomain Forlot7-163/+20
Change-Id: I37e66929e3ebf464802f9b89a222743936862029 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Rename bindingApp to ComposerRomain Forlot6-157/+187
Change-Id: Ib3256f5c89197a91d2bbfca7a92774e91de6f664 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Find all signals that matches the searched patternRomain Forlot6-53/+109
Change-Id: Ia562fbd90aaeaa57c1c731d0f66dd31865db7e71 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Make LUA worksRomain Forlot35-145/+246
- Added LUA library at link - Make app-template crash build if a checked file fails - Fix old defined variable CONTROL_LUA_PATH to a default one in the binding data directory - Add an example with unit conversion made in LUA Change-Id: I1b4712bde32a38044ad6b14ebd38b6782fd01fe9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Detailled transport layer architecture.Romain Forlot2-2/+12
Change-Id: Id2e5622aeee5e670043fac26b10f012d09a7fea0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Terminology completed.Romain Forlot3-8/+9
Change-Id: I68b7221762fa4782f61bd073f0c1c1f64373bd81 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Documentation formatRomain Forlot5-23/+36
Change-Id: I4feb44fffce727419660c8ac38c77283b52c695d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14FixRomain Forlot1-1/+1
Change-Id: Ibcb4e4b878320105878170a6b6aa1f7e05152822 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Added documentationRomain Forlot22-0/+1150
Change-Id: Iaa6bb0470652d3d0dc97c6320dbf210567ccec80 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Modification about conf definitionRomain Forlot12-231/+368
- Argument for each signal subscription. (getSignalsArgs) - differentiation between Signal as raw signal from another API and virtual signal depending upon other signals - changing way to specify function with uri that specify everythings that could be needed to invoke a function. Change-Id: I8917c5ae3c2c1e3fa48ddfdda41fc75eaba32bb7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Implement list verbRomain Forlot1-3/+9
Change-Id: Id0e5c087ba17b2a2aee6f8ce9482f80a54926a7d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Doxygen documentationRomain Forlot2-12/+65
Change-Id: I12efd66777cbc5217dfd68827f40727577df1406 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Return mathematical value on a period if askedRomain Forlot2-7/+25
Change-Id: I40799d054e56b3ae9462963d317d8fb458a21122 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Match signal if name found in source signal.Romain Forlot2-0/+2
Change-Id: Ia080cddac3973998a2dc8f8a143489298d6c8504 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>