Skip to content

Commit 9fd23e7

Browse files
committed
Solved links not working in PDF
1 parent c518418 commit 9fd23e7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

slides.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ programs
431431
## Timers
432432
* struct timer
433433
* Passive timer, only keeps track of its expiration time
434-
434+
435435
* struct etimer
436436
* Active timer, sends an event when it expires
437437
@@ -530,15 +530,15 @@ RIME vs IP
530530
* Communicating nodes must agree on what modules to use on a certain channel
531531
* Unicast on channel 155
532532
* Netflood on channel 130
533-
* Channel numbers < 128 are reserved by the system. Used by the shell, other system apps
533+
* Channel numbers lower than 128 are reserved by the system. Used by the shell, other system apps
534534
535535
---
536536
#### Example 1. Send to Neighbours
537537
538538
```
539539
void recv(struct broadcast_conn *c) {
540540
printf("Message received %s\n", (char*)packetbuf_dataptr());
541-
}
541+
}
542542
```
543543
544544
```
@@ -551,34 +551,41 @@ void setup_sending_a_message_to_all_neighbors(void) {
551551
broadcast_open(&c, 128, &cb); /* Channel 128 */
552552
}
553553
```
554+
554555
```
555556
void send_message_to_neighbours(char* msg, int len) {
556557
packetbuf_copyfrom(msg, len); /* Copy data to buffer */
557558
broadcast_send(&c);
558559
}
559560
```
561+
560562
---
561563
#### Example 2. Send message to entire network
564+
562565
```
563566
void recv(struct trickle_conn *c) { /* callback */
564567
printf(“Message received, length = %d\n", databuf_datalen());
565568
}
566569
```
570+
567571
```
568572
struct trickle_callbacks cb = {recv}; /* Callbacks */
569573
struct trickle_conn c; /* Connection */
570574
```
575+
571576
```
572577
void setup_sending_a_message_to_network(void) {
573578
trickle_open(&c, CLOCK_SECOND, 129, &cb); /* Channel 129 */
574579
}
575580
```
581+
576582
```
577583
void send_message_to_network(char *msg, int len) {
578584
packetbuf_copyfrom(msg, len); /* Setup rimebuf */
579585
trickle_send(&c);
580586
}
581587
```
588+
582589
---
583590
## Additional Information I
584591
@@ -622,4 +629,4 @@ Other stuff
622629
| ------------- |---------------| ----- |
623630
| col 3 is | right-aligned | $1600 |
624631
| col 2 is | centered | $12 |
625-
| zebra stripes | are neat | $1 |
632+
| zebra stripes | are neat | $1 |

0 commit comments

Comments
 (0)