Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ ThreadInterface mesh;
#endif

#ifndef MESH
#include "eventOS_scheduler.h"
#include "eventOS_event.h"
#include "nsdynmemLIB.h"
#include "platform/arm_hal_timer.h"
#include "ns_event_loop.h"

#define HEAP_SIZE 1023
static uint8_t app_stack_heap[HEAP_SIZE + 1];
// This is address to mbed Device Connector
#define MBED_SERVER_ADDRESS "coap://api.connector.mbed.com:5684"
#else
Expand Down Expand Up @@ -262,15 +254,6 @@ int main() {
mbed_trace_init();
mbed_trace_print_function_set(trace_printer);

#ifndef MESH
ns_dyn_mem_init(app_stack_heap, HEAP_SIZE,
NULL, 0);
platform_timer_enable();
eventOS_scheduler_init();
ns_event_loop_thread_create();
ns_event_loop_thread_start();
#endif

NetworkStack *network_stack = 0;
#if defined WIFI
output.printf("\n\rUsing WiFi \r\n");
Expand Down