collectionsenderp.nc
来自「tinyos-2.0源代码!转载而已!要的尽管拿!」· NC 代码 · 共 19 行
NC
19 行
#include "Collection.h"generic configuration CollectionSenderP(collection_id_t collectid, uint8_t clientid) { provides { interface Send; interface Packet; }}implementation { components TreeCollectionC as Collector; components new CollectionIdP(collectid); Send = Collector.Send[clientid]; Packet = Collector.Packet; Collector.CollectionId[clientid] -> CollectionIdP;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?