read telem from MoPower UPS

pull/1/head
Alan Johnston 7 years ago
parent a1ee3cc5f2
commit 5182d590d3

@ -81,6 +81,12 @@ int main(void)
int channel; // AO-7 telemetry format has 6 channels, 4 sub channels in each int channel; // AO-7 telemetry format has 6 channels, 4 sub channels in each
int msg_length; int msg_length;
FILE* file = popen("mpcmd show data 2>&1", "r");
char cmdbuffer[1000];
fgets(cmdbuffer, 1000, file);
pclose(file);
printf("buffer is :%s\n", cmdbuffer);
while(1) { // loop forever while(1) { // loop forever
for (channel = 0; channel < 7; channel++) { for (channel = 0; channel < 7; channel++) {

Loading…
Cancel
Save

Powered by TurnKey Linux.