src/server/server.py
def restore_node_frequency(node_index):
    ''' Restore frequency for given node index (update hardware) '''
    gevent.sleep(0.250)  # pause to get clear of heartbeat actions for scanner
    profile = getCurrentProfile()
    profile_freqs = json.loads(profile.frequencies)
    freq = profile_freqs["f"][node_index]
    INTERFACE.set_frequency(node_index, freq)
    logger.info('Frequency restored: Node {0} Frequency {1}'.format(node_index+1, freq))
 Restore frequency for given node index (update hardware) 
Restore frequency for given node index (update hardware)
Restore frequency for given node index ( update hardware )
def restore_node_frequency(node_index):
    gevent.sleep(0.250)  
    profile = getCurrentProfile()
    profile_freqs = json.loads(profile.frequencies)
    freq = profile_freqs["f"][node_index]
    INTERFACE.set_frequency(node_index, freq)
    logger.info('Frequency restored: Node {0} Frequency {1}'.format(node_index+1, freq))
def restore_node_frequency ( node_index ) : gevent . sleep ( 0.250 ) profile = getCurrentProfile ( ) profile_freqs = json . loads ( profile . frequencies ) freq = profile_freqs [ "f" ] [ node_index ] INTERFACE . set_frequency ( node_index , freq ) logger . info ( 'Frequency restored: Node {0} Frequency {1}' . format ( node_index + 1 , freq ) )
Restore frequency for given node index (update hardware)
Restore frequency for given node index ( update hardware )
''' Restore frequency for given node index (update hardware) ''' # pause to get clear of heartbeat actions for scanner
node_index