Skip to content

File main.cpp

FileList > demo-projets > jaculus > main > main.cpp

Go to the source code of this file.

  • #include <jac/machine/machine.h>
  • #include <jac/features/asyncEventLoopFeature.h>
  • #include <jac/features/asyncTimersFeature.h>
  • #include <jac/features/yieldFeature.h>
  • #include <jac/features/moduleLoaderFeature.h>
  • #include <jac/features/filesystemFeature.h>
  • #include <jac/machine/values.h>
  • #include "features/wdtResetFeature.h"
  • #include "features/neopixelFeature.h"
  • #include "features/gpioFeature.h"
  • #include "features/linkIoFeature.h"
  • #include <jac/link/mux.h>
  • #include <jac/link/encoders/cobs.h>
  • #include "serialStream.h"
  • #include <string>
  • #include <filesystem>
  • #include <sstream>
  • #include "esp_vfs_fat.h"
  • #include "freertos/task.h"
  • #include "util/controller.h"
  • #include "util/uploader.h"
  • #include "util/logger.h"

Public Types

Type Name
typedef EventLoopTerminal< AsyncTimersFeature< YieldFeature< WdtResetFeature< AsyncEventLoopFeature< NeopixelFeature< GpioFeature< LinkIoFeature< ModuleLoaderFeature< FilesystemFeature< jac::MachineBase > >> >> >> >> > Machine
typedef Mux< CobsPacketizer, CobsSerializer, SerialStream > Mux_t

Public Attributes

Type Name
Controller< Machine > controller
std::unique_ptr< Mux_t > mux

Public Static Attributes

Type Name
wl_handle_t s_wl_handle = = WL_INVALID_HANDLE

Public Functions

Type Name
void app_main ()
int main ()

Public Types Documentation

typedef Machine

using Machine =  EventLoopTerminal< AsyncTimersFeature< YieldFeature< WdtResetFeature< AsyncEventLoopFeature< NeopixelFeature< GpioFeature< LinkIoFeature< ModuleLoaderFeature< FilesystemFeature< jac::MachineBase > >> >> >> >> >;

typedef Mux_t

using Mux_t =  Mux<CobsPacketizer, CobsSerializer, SerialStream>;

Public Attributes Documentation

variable controller

Controller<Machine> controller([]() { std::stringstream oss;oss<< esp_get_free_heap_size()<< "/"<< esp_get_minimum_free_heap_size();return oss.str();},[]() { return "not implemented";});

variable mux

std::unique_ptr<Mux_t> mux;

Public Static Attributes Documentation

variable s_wl_handle

wl_handle_t s_wl_handle;

Public Functions Documentation

function app_main

void app_main () 

function main

int main () 

The documentation for this class was generated from the following file demo-projets/jaculus/main/main.cpp