Add a new extension library: connection (#39)
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
#include "lib_export.h"
|
||||
#include "sensor_api.h"
|
||||
#include "connection_api.h"
|
||||
|
||||
static NativeSymbol extended_native_symbol_defs[] = {
|
||||
#include "runtime_sensor.inl"
|
||||
#include "connection.inl"
|
||||
};
|
||||
|
||||
#include "ext_lib_export.h"
|
||||
|
||||
@ -46,6 +46,7 @@ static int baudrate = B115200;
|
||||
extern void * thread_timer_check(void *);
|
||||
extern void init_sensor_framework();
|
||||
extern int aee_host_msg_callback(void *msg, uint16_t msg_len);
|
||||
extern bool init_connection_framework();
|
||||
|
||||
#ifndef CONNECTION_UART
|
||||
int listenfd = -1;
|
||||
@ -213,7 +214,7 @@ void* func_server_mode(void* arg)
|
||||
sockfd = -1;
|
||||
pthread_mutex_unlock(&sock_lock);
|
||||
|
||||
sleep(2);
|
||||
sleep(1);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -442,6 +443,11 @@ int iwasm_main(int argc, char *argv[])
|
||||
goto fail1;
|
||||
}
|
||||
|
||||
if (!init_connection_framework()) {
|
||||
vm_thread_sys_destroy();
|
||||
goto fail1;
|
||||
}
|
||||
|
||||
init_sensor_framework();
|
||||
|
||||
// timer manager
|
||||
|
||||
Reference in New Issue
Block a user