11 lines
315 B
C
11 lines
315 B
C
#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;
|
|
}
|