Skip to content

Commit 2c63f30

Browse files
authored
Fix documentation about wwi (cyberbotics#5848)
* Fix documentation about wwi * Revert
1 parent 2749c81 commit 2c63f30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/reference/robot.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,8 @@ The message is sent using the `webots.window("<robot window name>").send` method
23612361
The `wb_robot_window_send` and `wb_robot_wwi_send_text` functions allow a robot controller to send a message to a JavaScript function running in the HTML robot window.
23622362
The message is received using the `webots.window("<robot window name>").receive` method of the Webots JavaScript API.
23632363

2364-
The `wb_robot_wwi_send_text` function returns the first message present in the buffer of received messages and moves its reading head to the next one. To read the full buffer, you should call repeatedly this function until it returns `NULL`:
2364+
The `wb_robot_wwi_receive_text` function returns the first message present in the buffer of received messages and moves its reading head to the next one.
2365+
To read the full buffer, you should call repeatedly this function until it returns `NULL`:
23652366
```C
23662367
const char *message;
23672368
while ((message = wb_robot_wwi_receive_text())) {

0 commit comments

Comments
 (0)