if (!str) { return -1; }
see: doc/20.In_Application_Programming_based_EVB_MX_Plus.md
first commit for opensource