Add setStaticIPAddress and setDHCP functions to support setting a static IP address.

Buildtest example updated with comment on usage.