add server example and fix gpio util