</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">sample_rate</span>
        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">realtime_data</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
            <span class="n">json</span><span class="p">[</span><span class="s1">&#39;realtimeData&#39;</span><span class="p">]</span> <span class="o">=</span> <s