fix log type
add sleep after subscription so pubs are delayed (preventing pub before sub done)
Merge pull request #603 from demaagdk/develop

Develop