Write and comm

Hi,
What are diffrences betwean write and comm in Mikrotik API?

I assume you’re talking about Denis’ PHP API client.

write() writes a single word (or a sentence with a single word, if you leave the second argument to true), and comm() writes a full sentence, complete with words for arguments, queries and tags AND it also returns the next response.

It’s a distinction you only need to understand if you’re dealing with the protocol on a raw level, which is why other API clients (mine included) typically provide just one entry point for you to deal with.

Plus, the whole write()/comm() approach can be buggy if you use tags, but that’s just a side note.