Initial MeshPort SDK and cross-platform client
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include "meshport.h"
|
||||
int main(void) {
|
||||
uint64_t context = meshport_context_new();
|
||||
if (!context) return 1;
|
||||
char *result = meshport_call(context, "{\"op\":\"status\"}");
|
||||
if (result) { puts(result); meshport_string_free(result); }
|
||||
meshport_context_free(context);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user