Adding test
[src/app-framework-binder.git] / src / afb-wsj1-test.cpp
diff --git a/src/afb-wsj1-test.cpp b/src/afb-wsj1-test.cpp
new file mode 100644 (file)
index 0000000..059c845
--- /dev/null
@@ -0,0 +1,16 @@
+#include "afb-wsj1.hpp"
+
+void onreply(const char *value){
+       std::cout<< *value<<std::endl;
+       system("PAUSE");
+}
+
+int main(){
+    std::string uri,api,verb, req;
+    char * request = (char*)req.c_str();
+    afb::wsj1 sj1;
+    sj1.connect(uri);
+    sj1.call(api.c_str(),verb.c_str(),request,onreply);
+
+    return EXIT_SUCCESS;
+}
\ No newline at end of file