This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "encoding/json" | |
| ) | |
| type Data struct { | |
| IntF int | |
| StringF string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char* data="Please work! :P"; | |
| packetXBee* paq_sent; | |
| uint8_t PANID[2] = {0x33, 0x32}; | |
| uint8_t dest_addr[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF}; | |
| int i = 0; | |
| void setup() { | |
| xbee802.init(XBEE_802_15_4, FREQ2_4G, NORMAL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Mammal struct { | |
| Lung string | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COMPONENT=Send_BC_D_N154C | |
| CFLAGS += -I$(shell pwd)/.. | |
| # To use the TKN15.4 MAC instead of a platform's default MAC protocol first | |
| # include the TinyOS "Makerules" file as usual ... | |
| include $(MAKERULES) | |
| # ... and then include the TKN15.4 "Makefile.include" file. That's all. | |
| # Hint: type "make <platform> verbose" to see the aggregate include path. | |
| include $(TOSDIR)/lib/mac/tkn154/Makefile.include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COMPONENT=Send_p2p_D_N154C | |
| CFLAGS += -I$(shell pwd)/.. | |
| # To use the TKN15.4 MAC instead of a platform's default MAC protocol first | |
| # include the TinyOS "Makerules" file as usual ... | |
| include $(MAKERULES) | |
| # ... and then include the TKN15.4 "Makefile.include" file. That's all. | |
| # Hint: type "make <platform> verbose" to see the aggregate include path. | |
| include $(TOSDIR)/lib/mac/tkn154/Makefile.include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COMPONENT=Receive_D_N154C | |
| CFLAGS += -I$(shell pwd)/.. | |
| # To use the TKN15.4 MAC instead of a platform's default MAC protocol first | |
| # include the TinyOS "Makerules" file as usual ... | |
| include $(MAKERULES) | |
| # ... and then include the TKN15.4 "Makefile.include" file. That's all. | |
| # Hint: type "make <platform> verbose" to see the aggregate include path. | |
| include $(TOSDIR)/lib/mac/tkn154/Makefile.include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #build libmote.a | |
| cd ${TOSROOT}/support/sdk/c/sf/ | |
| ./bootstrap | |
| ./configure | |
| make | |
| #build seriallisten15-4.c | |
| cd ${TOSROOT}/apps/BaseStation15.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "bytes" | |
| func StreamToByte(stream io.Reader) []byte { | |
| buf := new(bytes.Buffer) | |
| buf.ReadFrom(stream) | |
| return buf.Bytes() | |
| } | |
| func StreamToString(stream io.Reader) string { | |
| buf := new(bytes.Buffer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CountNotifier extends ChangeNotifier { | |
| int _count = 0; | |
| int get count => _count; | |
| set count(int count) { | |
| _count = notifyPropertyChange(#count, _count, count); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CountNotifier extends ChangeNotifier { | |
| int _count = 0; | |
| int get count => _count; | |
| set count(int count) { | |
| _count = notifyPropertyChange(#count, _count, count); | |
| } | |
| } |