Bug fix and Arduino sample

Added simple arduino client