Frequently Asked Questions 5 - Kvel2D/ecs193-wireless-sensor-network GitHub Wiki

How do I set receiver frequency between two nodes in tree_data.h

There are preset frequencies in tree_data.h, but if you want to use an undefined nodeID or change the present tree_data, here is an example.

// 1
{
        .rx_frequency = NO_FREQ,
        .parent = 2,
        .has_sensor = true,
},
// 2
{
        .rx_frequency = 433.50f,
        .parent = NO_ID,
        .has_sensor = false,
},

// 1 means noteID = 1. .rx_frequency = NO_FREQ, means it doesn't receive. .parent = 2, means it sends to Note 2 using the .rx_frequency that node 2 has. .has_sensor = true, means it connects with sensors. // 2 means noteID = 2. .rx_frequency = 433.50f, means it receives packets using 433.50f frequency radio. .parent = NO_ID, means it doesn't send packets. .has_sensor = false, means it doesn't connect with sensors. Before deploying the node, you need to use id-writer.ino to write its ID. And if you use sensors, you may use read-serial-number.ino to order and label the sensors.