import json


def load_config(path='config.json'):
    """
    Loads configruation from config.json file. 
    Returns station mac address, interval, and units for data request
    """
    # Open config JSON
    with open(path) as f:
        # Load JSON file to dictionary
        config = json.load(f)
        
        # Return mac address, interval, and units
        return (config['station_max_address'], int(config['interval']), config['units'])