sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
request-data-ttn-restful Namespace Reference

Functions

def requestRESTAPI
 

Variables

string DEVICE = 'test_01'
 
string URL = 'https://vitudurum-drtrigon.data.thethingsnetwork.org'
 
dictionary ACCESS_KEYS
 
list timestamp = data_point['time']
 Query data (status_code, data) = requestRESTAPI('/api/v2/query') print status_code print data. More...
 
tuple payload = base64.b64decode(data_point['raw'])
 

Function Documentation

def request-data-ttn-restful.requestRESTAPI (   query)

Variable Documentation

dictionary request-data-ttn-restful.ACCESS_KEYS
Initial value:
1 = {
2  'default key': 'ttn-account-v2.cEu7sTqE1zCp2vKNcKiJY5salOzXk62GaSbnjSl1KBs',
3 }
string request-data-ttn-restful.DEVICE = 'test_01'
tuple request-data-ttn-restful.payload = base64.b64decode(data_point['raw'])
list request-data-ttn-restful.timestamp = data_point['time']

Query data (status_code, data) = requestRESTAPI('/api/v2/query') print status_code print data.

string request-data-ttn-restful.URL = 'https://vitudurum-drtrigon.data.thethingsnetwork.org'