SlippyMesh
1.0.0
C ++로 작성된 가벼운 Lora Mesh 네트워크
모든 사람에게 메시지를 보내려면 연재물 및 유형을여십시오.
send 0xFFFFFFFF "hello world"
명령 목록을받습니다
help
대상 주소로 혼란을 보냅니다
send <address> <message>
예
sendex 0x01234567 "hello"
0x01234567로 메시지를 보냅니다
sendex 0xFFFFFFFF "hello everyone"
모든 사람에게 메시지를 보냅니다
몇 가지 추가 옵션으로 대상 주소로 메시지를 보냅니다.
sendex <address> <message> <type> <service> <flags>
예
sendex 0x01234567 "hello" 0 0 0b00000000
0x01234567로 메시지를 보냅니다 ( '송신 0x01234567 "Hello"'와 동일)
sendex 0x01234567 "ping" 0 1 0b00000000
원격 명령을 0x01234567로 보냅니다
sendex 0xFFFFFFFF "hello everyone" 0 0 0b00000000
모든 사람에게 메시지를 보냅니다 ( '0xffffffff "Hello Goyber"
sendex 0xFFFFFFFF "hello neighbors" 0 0 0b10000000
인접 노드에 메시지를 보냅니다
몇 가지 추가 옵션과 Base64로 대상 주소로 메시지를 보냅니다.
send64 <address> <base64> <type> <service> <flags>
예
send64 0x01234567 "aGVsbG8=" 0 0 0b00000000
0x01234567로 메시지를 보냅니다 (이것은 Base64와 함께 SendEx입니다)
원격 명령을 보내려면 sendx를 사용해야합니다.
sendex <address> "<command> <args>" 0 1 0b00000000
ping
"Pong"을 반환합니다
uptime
"HH : MM : SS"에서 노드 가동 시간을 반환합니다.
src/commands.cpp 에서 rcmd_yourcommandname이라는 함수를 만듭니다
void rcmd_yourcommandname (MyRemoteCommandParser::Argument *args, char *res) {
char * response = " hello world " ;
strlcpy (res, response, MyRemoteCommandParser::MAX_RESPONSE_SIZE);
} 그런 다음 void registerRemoteCommands() {} 하단에 추가하십시오.
remoteParser.registerCommand( " yourcommandname " , " " , &rcmd_yourcommandname); 마지막으로 src/commands.h 에서 #endif 전에 이것을 추가하십시오
void rcmd_yourcommandname (MyRemoteCommandParser::Argument *args, char *res);