Commit 5571f9b1 authored by Ian Craggs's avatar Ian Craggs

Some small cleanup

parent 1f02409c
from __future__ import print_function
print("this is the test Python program")
import socket, sys, select, traceback, datetime, os
import SocketServer as socketserver
# Trace MQTT traffic
import MQTTV3112 as MQTTV3
\ No newline at end of file
...@@ -276,7 +276,6 @@ void MyLog(int LOGA_level, char* format, ...) ...@@ -276,7 +276,6 @@ void MyLog(int LOGA_level, char* format, ...)
printf("%s\n", msg_buf); printf("%s\n", msg_buf);
fflush(stdout); fflush(stdout);
} }
#endif
#if defined(WIN32) || defined(_WINDOWS) #if defined(WIN32) || defined(_WINDOWS)
......
...@@ -162,10 +162,7 @@ void getopts(int argc, char** argv) ...@@ -162,10 +162,7 @@ void getopts(int argc, char** argv)
} }
} }
#if 0
#include <logaX.h> /* For general log messages */
#define MyLog logaLine
#else
#define LOGA_DEBUG 0 #define LOGA_DEBUG 0
#define LOGA_INFO 1 #define LOGA_INFO 1
#include <stdarg.h> #include <stdarg.h>
...@@ -196,7 +193,7 @@ void MyLog(int LOGA_level, char* format, ...) ...@@ -196,7 +193,7 @@ void MyLog(int LOGA_level, char* format, ...)
printf("%s\n", msg_buf); printf("%s\n", msg_buf);
fflush(stdout); fflush(stdout);
} }
#endif
#if defined(WIN32) || defined(_WINDOWS) #if defined(WIN32) || defined(_WINDOWS)
#define mqsleep(A) Sleep(1000*A) #define mqsleep(A) Sleep(1000*A)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment