signal-application-python-sdk
Setup
Add Signal-Application-SDK as a dependency to requirements.txt
signal-application-python-sdk==<latest>
Install dependencies
python setup.py install
Entry point for Signal Application SDK
- Creates a bi-directional communication between device agent and application
Initialize SDK
from signalsdk.signal_app import SignalApp
app = SignalApp()
app.initialize(onConfigUpdated, onEventReceived, onCommandReceived)
Provide a callback method to get notified when a configuration change is requested
def onConfigUpdated(self, config):
- Will be triggered when a new configuration change requested from the cloud
Provide a callback method to get notified when an event is received from event bus
def onEventReceived(self, event):
- Will be triggered when a new event received from application's subscribed topic
Provide a callback method to get notified when an command is received from event bus
def onCommandReceived(self, command):
- Will be triggered when a new command received from device agent
Call next to forward the event to the next edgesignal application which has sdk integrated, if next_app_id(optional) is specified, it forwards the event to the specified application
self.app.next(event: object, next_app_id)
Call next to forward the event to the next node-red application running on node-red.
self.app.nextNode(event: object)
Sample usage
Consider adding these two params to the application detail
config object will be reveived as below
{
message: 'some text message',
param2: 101
}
Metadata
Release files for signal-application-python-sdk 3.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| signal_application_python_sdk-3.2.2.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| signal_application_python_sdk-3.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / signal_application_python_sdk-3.2.2.tar.gz
| Download URL | signal_application_python_sdk-3.2.2.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a27aff910aa9eb70f4fd9138df92b40dba8b97c1a75f24aab51978a39205658
|
|
BLAKE2b-256 checksum How to use checksums |
04067c3f648576a103af7156d54148c2b5077f787c8debdfe8fa28b399b2d838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / signal_application_python_sdk-3.2.2-py3-none-any.whl
| Download URL | signal_application_python_sdk-3.2.2-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47b2ad1bedfb48f27b511ff6f704250b19a483d4049555d9be42928a0dd2d009
|
|
BLAKE2b-256 checksum How to use checksums |
e5f58a2dcf5d03ee77e102f23cc9e2db253ef8f06f28220921cd77b21de09efa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|