📃
Edge Signal Docs
Edge Signal Platform
Edge Signal Platform
  • Overview
  • Architecture
  • Quick Start
    • Register Device
    • Create a Dockerized Application
    • Create a Native Application
    • Create Deployment
    • Enable Alert
    • Create Tunnel
    • Execute Remote Commands
    • Monitor Device
    • Create & Deploy a Data Flow
  • PROJECTS
    • Overview
    • Create Project
    • Assign User
  • USERS
    • Account Registration
    • Accounts
    • Invitations
    • Roles
  • DEVICES
    • Device Registration
    • Fleet Management
    • Device Detail
    • WiFi Settings
    • Groups
  • APPLICATIONS
    • Overview
    • Create Application
    • Create Release
    • Application Settings
  • DEPLOYMENTS
    • Overview
    • Create Deployment
    • Modify Deployment
    • Delete Deployment
    • Upload Files
    • Deployment Scripts
  • Data Flows
    • Overview
    • Design a Data Flow
    • Use a Data Flow
      • OPC-UA Server to Cloud MQTT Video Demo
  • MONITORING
    • Metrics
    • Filtering
    • Custom Metrics
  • ALERTS
    • Create Channel
    • Create Rule
    • Custom Alerts
  • REMOTE CONTROL
    • Tunnel Architecture
    • Create Tunnel
    • Close Tunnel
  • LOGS
    • Overview
    • Fetch Device Logs
  • SDK
    • Overview
    • Python
    • Javascript
  • DEVICE AGENT
    • Release Notes
  • Policy and Legal
    • Terms and Conditions
    • Privacy Policy
    • Service Level Agreement
Powered by GitBook
On this page
  • Latest Release
  • Setup
  1. SDK

Python

Latest Release

Version 1.1.0

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

self.app = SignalApp()
self.app.initialize(self.onConfigChange, self.onEvent)

Provide a callback method to get notified when a configuration change is requested

def onConfigChange(self, config):
  • Will be triggered when a new configuration change from the cloud is received by device agent

Provide a callback method to get notified when an event is received from event bus

def onEvent(self, event):
  • Will be triggered when a new event received from application's subscribed topic

Call next to forward the event to the next node

self.app.next(event: object)

Sample usage

Configure an application as shown below:

Configuration will be received as shown below:

{
    message: 'some text message',
    param2: 101
}
PreviousOverviewNextJavascript

Last updated 2 years ago

Application release setting configuration