mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-15 02:54:26 +00:00
Merge pull request #5232 from chromoxdor/test_udp_ignore
[SendTo] add ability to nest one SendTo command into another
This commit is contained in:
@@ -41,6 +41,7 @@ const __FlashStringHelper* Command_UPD_SendTo(struct EventStruct *event, const c
|
||||
if ((destUnit > 0) && (destUnit < 255))
|
||||
{
|
||||
String eventName = tolerantParseStringKeepCase(Line, 3);
|
||||
stripEscapeCharacters(eventName);
|
||||
SendUDPCommand(destUnit, eventName.c_str(), eventName.length());
|
||||
}
|
||||
return return_command_success_flashstr();
|
||||
|
||||
@@ -1563,7 +1563,7 @@ bool GetArgvBeginEnd(const char *string, const unsigned int argc, int& pos_begin
|
||||
|
||||
if (!parenthesis && (((c == ' ') && (d == ' ')) ||
|
||||
((c == separator) && (d == ' ')))) {
|
||||
// Consider multiple consequitive spaces as one.
|
||||
// Consider multiple consecutive spaces as one.
|
||||
}
|
||||
else if (!parenthesis && ((d == ' ') && (e == separator))) {
|
||||
// Skip the space.
|
||||
|
||||
Reference in New Issue
Block a user