Skip to content

Commit 2e3c65d

Browse files
committed
Actions Fix
1 parent 432812e commit 2e3c65d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/Commander_simple_ESP8266/Commander_simple_ESP8266.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Commander commander;
2424

2525
// We have to create the prototypes functions for our commands.
2626
// The arguments has to be the same for all command functions.
27-
void cat_func( char *args, commandResponse *response );
28-
void dog_func( char *args, commandResponse *response );
29-
void sum_func( char *args, commandResponse *response );
30-
void led_func( char *args, commandResponse *response );
27+
void cat_func( char *args, Stream *response );
28+
void dog_func( char *args, Stream *response );
29+
void sum_func( char *args, Stream *response );
30+
void led_func( char *args, Stream *response );
3131

3232
// To tell Commander how many commands we have, it is necessary
3333
// to create an array, that holds soma data that represents our
@@ -310,31 +310,31 @@ void loop() {
310310

311311

312312
/// This is an example function for the cat command
313-
void cat_func(char *args, commandResponse *response )
313+
void cat_func(char *args, Stream *response )
314314
{
315315

316316
response -> print("Hello from cat function!\r\n");
317317

318318
}
319319

320320
/// This is an example function for the dog command
321-
void dog_func(char *args, commandResponse *response )
321+
void dog_func(char *args, Stream *response )
322322
{
323323

324324
response -> print("Hello from dog function!\r\n");
325325

326326
}
327327

328328
/// This is an example function for the led command
329-
void led_func(char *args, commandResponse *response )
329+
void led_func(char *args, Stream *response )
330330
{
331331

332332
digitalWrite( LED_PIN, !digitalRead( LED_PIN ) );
333333

334334
}
335335

336336
/// This is an example function for the sum command
337-
void sum_func(char *args, commandResponse *response )
337+
void sum_func(char *args, Stream *response )
338338
{
339339

340340
// These variables will hold the value of the

0 commit comments

Comments
 (0)