Polyphase Game Engine
Loading...
Searching...
No Matches
Serial_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "SerialManager.h"
4#include "EngineTypes.h"
5
6#if LUA_ENABLED
7
8#define SERIAL_LUA_NAME "Serial"
9
10struct Serial_Lua
11{
12 static int EnumeratePorts(lua_State* L);
13 static int Connect(lua_State* L);
14 static int Disconnect(lua_State* L);
15 static int IsConnected(lua_State* L);
16 static int Send(lua_State* L);
17 static int SendLine(lua_State* L);
18 static int StartReceive(lua_State* L);
19 static int StopReceive(lua_State* L);
20 static int IsReceiving(lua_State* L);
21
22 static int RegisterMessageFunction(lua_State* L);
23 static int RegisterREGEXMessageFunction(lua_State* L);
24 static int UnregisterMessageFunction(lua_State* L);
25
26 static int SetMessageCallback(lua_State* L);
27 static int SetConnectCallback(lua_State* L);
28 static int SetDisconnectCallback(lua_State* L);
29
30 static void Bind();
31};
32
33#endif
HttpHandle Send(HttpRequest req, HttpResponseCallback cb)
Definition HttpClient.cpp:237