Home AMX User Forum AMX General Discussion

Emulate a Device doesn't like nulls

Anyone else notice that Emulate a Device doesn't like nulls ($00) in a string expression?

Message(s) to Send: "$00"
Line 45 (11:33:54):: Incoming buffer: "$24,$30,$30" aka '$00', not exactly what I meant

Message(s) to Send: "$01"
Line 45 (11:34:09):: Incoming buffer: "$01"

I just rewrote a perfectly good module because it wasn't working for channel 1 ($00 in this protocol) when I tested via Emulate, only to find out that my version of the module has the same problem! If AMX isn't going to give us more testing/debugging tools, they should at least make sure the ones we have actually work. AUGH!

Jeremy

Comments

  • a_riot42a_riot42 Posts: 1,624
    Yeah, its a nasty gotcha....
  • GSLogicGSLogic Posts: 562
    jweather wrote: »
    Anyone else notice that Emulate a Device doesn't like nulls ($00) in a string expression?
    Message(s) to Send: "$00"
    Line 45 (11:33:54):: Incoming buffer: "$24,$30,$30" aka '$00', not exactly what I meant
    Jeremy
    The new version of NS fixed this issue.
  • GSLogic wrote: »
    The new version of NS fixed this issue.

    2.7.0.226 has this problem -- what new version?
  • jjamesjjames Posts: 2,908
    jweather wrote: »
    2.7.0.226 has this problem -- what new version?

    He may be referring to the 2.8 beta, which I suspect will be wrapping up shortly.
  • Spire_JeffSpire_Jeff Posts: 1,917
    I believe there is a 2.8 version being beta tested. Not sure if it has been released yet tho :)

    Jeff
Sign In or Register to comment.