discof746 ethernet+lcd

Revision:
1:e69854e65c88
Parent:
0:8b675b2726b7
--- a/GroveStreams.h	Thu Jan 05 18:39:43 2017 +0000
+++ b/GroveStreams.h	Mon Aug 31 17:50:33 2020 +0000
@@ -23,6 +23,7 @@
 #include "NetworkAPI/tcp/socket.hpp"
 #include "LcdDiscoF746NgTracer.h"
 
+
 class GroveStreams
 {
 
@@ -30,7 +31,7 @@
     EthernetInterface _eth;
     LcdDiscoF746NgTracer* _pLcd;
 
-    const char* _domain;
+    //const char* _domain;
     uint16_t _port;
     const char* _apiKey;
     const char* _myIPAddress;  //Don't Change. Set below from DHCP. Needed by GroveStreams to verify that a device is not uploading more than once every 10s.
@@ -73,8 +74,9 @@
     * \return 0 on success
     */
     unsigned long send(const char* componentId, const char* samples);
+    unsigned long sendJPA(const char* componentId, const char* samples);
+    unsigned long sendInitDatasJPA(const char* componentId, const char* samples);
     
-
     /** Send sample data to GroveStreams. Attempts to restore dropped ethernet
     *  connections
     *
@@ -105,7 +107,9 @@
     * \return 0 on success
     */
     unsigned long send(const char* componentId, const char* samples, const char* componentName, const char* compTmplId, char* resultBuffer, size_t resultBufferSize);
-    
+    unsigned long sendJPA(const char* componentId, const char* samples, const char* componentName, const char* compTmplId, char* resultBuffer, size_t resultBufferSize);
+    unsigned long sendInitDatasJPA(const char* componentId, const char* samples, const char* componentName, const char* compTmplId, char* resultBuffer, size_t resultBufferSize);
+   
     /** Send sample data to GroveStreams. Does not attempt to restore dropped
     *  ethernet connections.
     *
@@ -122,6 +126,8 @@
     * \return 0 on success
     */
     unsigned long sendNoRetry(const char* componentId, const char* samples, const char* componentName, const char* compTmplId, char* resultBuffer, size_t resultBufferSize);
+    unsigned long sendNoRetryJPA(const char* componentId, const char* samples, const char* componentName, const char* compTmplId, char* resultBuffer, size_t resultBufferSize);
+    unsigned long sendNoRetryInitDatasJPA(const char* componentId, const char* samples, const char* componentName, const char* compTmplId, char* resultBuffer, size_t resultBufferSize);
 
     /** Starts ethernet.
     * Stops ethernet if it is running before starting it.
@@ -136,4 +142,4 @@
 
 };
 
-#endif /* GROVESTREAMS_H_ */
\ No newline at end of file
+#endif /* GROVESTREAMS_H_ */