cMicroOrp  1.0.0
C code for microcontrollers - provides ORP remote interface
orp_output.h
Go to the documentation of this file.
1 /*
2 Copyright <2020> <J Thompson>
3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 */
7 
8 #ifndef ORP_OUTPUT_H
9 #define ORP_OUTPUT_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include "orp.h"
16 
17 
18 // Output registration call back handler prototype
19 // this is called when the Octave Edge device response over ORP
20 
21 // example Notification from Octave Edge
22 // c@01T1585927713.843660,Pval/od/value,D456.000000
23 // 0x7E,0x63,0x40,0x30,0x31,0x54,0x31,0x35,0x38,0x35,0x39,0x32,0x37,0x37,0x31,0x33,0x2E,0x38,0x34,0x33,0x36,0x36,0x30,0x2C,0x50,0x76,0x61,0x6C,0x2F,0x6F,0x64,0x2F,0x76,0x61,0x6C,0x75,0x65,0x2C,0x44,0x34,0x35,0x36,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x53,0x65,0x7E
24 
25 
26 
27 
28 // Creates remote resource in the Octave edge device
29 // ----------------------------------------------------------------------------
35 // ----------------------------------------------------------------------------
36 int16_t orp_output_create_num(char *keyString);
37 
38 
39 
40 // ----------------------------------------------------------------------------
50 // ----------------------------------------------------------------------------
51 int16_t orp_output_registerCallback_num(char *keyString);
52 
53 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif // ORP_OUTPUT_H
orp_output_registerCallback_num
int16_t orp_output_registerCallback_num(char *keyString)
Registers a callback inside the Octave edge device.
Definition: orp_output.c:30
orp.h
orp_output_create_num
int16_t orp_output_create_num(char *keyString)
Register a numeric output in Octave Remote.
Definition: orp_output.c:11