From: Energy harvesting-based data uploading for Internet of Things
Algorithm 2 : distributive AP selection process of IoT devices. | |
---|---|
1: | The APs broadcast their data utilization Θ1,⋯,Θj,⋯,ΘN to devices through CC channel every \(T_{AP}, T_{AP} \gg T_{i}, \forall i\in \mathcal {M}\) period. |
2: | The devices compute the expected data uploading probability \(\tilde {A}_{i, k}^{s}\) over APs according to equation (16). |
3: | For device i,i∈1,⋯,M who selected AP j for data uploading |
4: | IF \(\max _{k} \tilde {A}_{i, k}^{s}\geq A_{i, j}^{s}+\epsilon \) do |
5: | Device i sends the request to AP k for data uploading. |
6: | end |
7: | end |