#include "afb-wsj1.hpp"
void onreply(const char *value){
- std::cout<< *value<<std::endl;
- system("PAUSE");
+ std::cout << value << std::endl;
+ exit(0);
}
int main(int ac, char **av){
afb::wsj1 sj1;
sj1.connect(uri);
sj1.call(api,verb,req,onreply);
-
+ system("PAUSE");
return EXIT_SUCCESS;
}
\ No newline at end of file