change the function to send searchgw msg
in emqtt_private.h:
-> add struct Publisher and add a list of publisher in client

in EMqtt.h:
-> add register state and the definition of puback callback

in emqtt_client.c:
-> add puback and regack message management
-> add function to know existance of a publisher and an other function
to get a publisher following topic_name
-> add function register and publish

in emqtt_sn_sub.c:
-> add timer and functions to test register, publish and puback callback
-> subscribe is comment for testing others functionnalities
before modification topic->id wasn't set after iteration of next_topic

Now it's fixed
delete the return because it exist the function publish before we cross
all the element of the connected_clients list
in emqtt_client.c:
-> delete the test of topic_id and change by the msg_id
-> set topic_id of subscriber if ACCEPTED

in emqtt_sn_sub.c:
-> add two subscribes event for testing
Merge pull request #7 from JulienMasson/master

Implementation of register and publish on client side