Installation instructions for Mac OS
=====================================

- Install latest Arduino IDE from [arduino.cc](https://www.arduino.cc/en/Main/Software)
- Open Terminal and execute the following command (copy->paste and hit enter one by one):

  ```bash
  mkdir -p ~/Documents/Arduino/hardware/heltec
  cd ~/Documents/Arduino/hardware/heltec
  git clone https://github.com/HelTecAutomation/ESP_HaLow.git esp_halow
  cd esp32
  git submodule update --init --recursive
  cd tools
  python get.py
  ```
- If you get errors in "python get.py" with "http_error", just try that command again;

- If you get a "protocol version error" similar to this:

```
IOError: [Errno socket error] [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
```
you may need to install a more-recent version of Python, e.g., Python 2.7.5 => Python 3.6.5. You may also need to update your installation of `openssl`.

- If you get the error below. Install the command line dev tools with xcode-select --install and try the command above again:
  
```xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun```

```xcode-select --install```

- Restart Arduino IDE

