Age | Commit message (Collapse) | Author | Files | Lines |
|
- Fix memleak: RRelease the Signal JSON representation once used
- Change equality condition between signals
- Use a REALTIME clock to retrieve the timestamp if not provided by
the signal. This is the most simple to date a signal and
use that time for further usage.
- Add a method to retrieve the last_timestamp value from
a signal
This with the commit from ctl-utilities submodule
"8ff0fe3c454ea32ba383a3cfa9c4e91237d6c494" fixes the
issue.
Change-Id: Ifed66796f92d789c80f10b161318f6bef788dda7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This has changed and is now explicitly launched because
last step of Controller configuration doesn't execute it.
Change-Id: I104011b912172da62114b62eeab90c76e41459dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
By default subscription argument request from signal
are passed if present, else the one from the signal's
source if present.
If nothing is specified for sources then argument
is set as a NULL pointer.
Change-Id: I18db0a9922039f41d475cd08758a2afd4acaa9d4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I77ab639593ecb3d73239244d11ee3da599caf1b4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ia3c79b64a44585f7d46e3cda5fbbc59b35322d5f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
By default, signal value are initialized to 0 which isn't
acceptable to be accurate and be able to calculate virtual
signals values as result would be false.
Change-Id: I8ec40d8dcb9ce1fae42aeec9fb48369f0914fd9f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Uninitiliazed variable in submodule
Better handling of iterator assigments
Avoid multiple call to vector.size() function
Change-Id: I9cc8431e71b7d614a1619615a4048f19f5e31540
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Generate headers from afb-genskel with CPP options which
generate correctly the header for a CPP project.
Change-Id: Ibb64de25ca510a82bc91ba938fc221d9b820e175
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ic2f8ebee552ce982f858fe6ee93db2508a290617
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I0777e2f4dfbc054c3379ee00e8b62dc3e6254f7c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Correctly grab lua script using simpler prefix
Correctly free Composer object's members
Adding default binding source as required-apis
Change-Id: I91d34b636286e79c7bcc27f8ba2730897ec5f424
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- Back in normal configuration file
- Remove builtin special callback as it is just a plugin after all
- Rename main configuration files to get it works on a target
board.
Change-Id: I69165c47e5e58eb519e727cfdd83ee628d90abba
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I7f059cb6566461a96765be78841d97e9b70beee3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Also renamed loadConf to addObjects to avoid confusion
with loadConf at init time.
Improve file research if fullpath not procided by searching
in the CONTROL_CONFIG_PATH.
Change-Id: I8e541ff7437f0378bcdc7215ff9f391dcce6db9f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Cleaning
Make some additionnals test avoiding segfault,
Filling opitonnal response object to avoid warning
Wrong plugins type register macro called
Change-Id: I012cc3ddc5f89b75dbc46c3ea535717141823884
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I36d675ba7c38ce883a021da1a82dfbe8b077a39f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
no reason to keep it as pointer, and simpler to initiaze
it at construction time.
Change-Id: I0aee4483c834e66651d80998de81c99799451ff5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Unsubscription remove asked signals from client session
then when no more signals are requested by the client
unsubscribe from event handle.
Correctly initialize members to by correctly evaluated after
Change-Id: Icabcb5a2446c62cab4eea9bf807613b719324ea0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: If50a439634382fa6d1c856b5c3fb29db4eb93a31
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I99d84fb56b01896caf6daa26ca50896f770ff509
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I0cff16c1d44b9363522fde7c6c9b2bd10ba376ac
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Later integrated in controller submodule
Change-Id: I7d5c7431e60fc16cc2053747674fe4f14efd6a14
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Keeping persistence between call data are kept in that member
also subscription Action now use getSignals_ context and no more
the signal one, this is more accurate and simples
Change-Id: Idd7c56ba30f1daa9eaf9b99a7261d58189ef0bb2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Values has to be set.
Change-Id: Ia8fcd23e68b79de5cd0316c81341ac41643750b5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
And replace free calls by delete because operator
new was used.
Change-Id: Ifb0d301b0a09dd83e3ad574c97e02bd8af072ae6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
# Conflicts:
# signal-composer-binding/signal-composer.cpp
|
|
And replace free calls by delete because operator
new was used.
Change-Id: Ifb0d301b0a09dd83e3ad574c97e02bd8af072ae6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Fix a memory squashing bug that segfault binder when
loading directory searching for binding.
Change-Id: Iedc6747d8ce49e7ff5fc2013bb7d03b5b553b89c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I266dd03cde2c712ab1b2e713f0c57a89063f72e4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I055d1ad1f9f1305009f4237e56566784e2ecdcfb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Controller will now handle loading additional files
from section.
Context retrieving change a bit, now we have source context
and plugin context.
Update json unpacking and packing.
Cleaning, format.
Change-Id: Ie7a4721f6b703796a0dac1a236922427f4755dc5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ibc0457d7395d336c9716e3ed7ca51b71c450f0db
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ib6068ef81151bc61923ad6ec54048028033ca4af
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ifd6ac589b86e44d43b1e70465c8eba0cfb487c19
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|
|
Change-Id: I1a61b49f55e4daa305800e754a14b6041aa81b34
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Icc23f135d4e65d6de131a60b978677e549738d78
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I92f9d242cd108d8355069a4a63b391a5302d27a8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I285c666c9ac77b6c1efb56406ce0a9cf33ec140f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|
|
Handle options in a vector.
Change-Id: Iafad2d93ea027db054750816750f4d07bd13c5d4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Stores sourceAPI as shared_ptr too.
Change-Id: I2dcd919b3053f29812a9bece14feb4f620f23ce3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Be able to tweak retention value for each signal in seconds
Change-Id: I1cabe48a2660cdeb2e9b32b277e7c819c6b49bd9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- 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>
|
|
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>
|
|
- 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>
|
|
Change-Id: Ib1d5da084b3a39fbfc9816070aba008e3486cfae
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I739a68e98623da4a6962c2d91025e4c0bfc222e1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|
|
Change-Id: Ic404c098f316106abe1918c3cd100ae047f4f555
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|