#113 update macros in modbus transport
#113 improve transportGetType and gatewayAddTransport, use macros
#113 improve function implementation transportGetType, use macros