Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Dec 6, 2011
  1. @theterg

    much comments added

    theterg authored
Commits on Dec 5, 2011
  1. @theterg
Commits on Dec 2, 2011
  1. @theterg
  2. @theterg

    Deprecated SwarmMessage

    theterg authored
    dynamic memory allocation = BAD
  3. @theterg

    wrapJSONForMe now impacts read()

    theterg authored
    Also shuffled out one buffer (so we share one)
    Still:
    -Lacking in some code cleanliness / comments
    -Need to optimize read() some more
    --Thinking about going back to buffer based solution...
Commits on Dec 1, 2011
  1. @theterg

    read() method re-written to be stateful, non-blocking

    theterg authored
    -read() now works, reading right from the stream (look ma, no buffer!)
    -you can use all of the stream functions (readBytes, readBytesUntil)
    TODO
    -make read() also respond to wrapJSONForMe() - omit le json
Commits on Nov 30, 2011
  1. @theterg

    Made AnalogBroadcast a bit more stable

    theterg authored
    -Added printMessage() so I could temporarily move away from
    SwarmMessage - which is leaking memory, and i'd like to deprecate
    -Finished swarm.println() solution, added wrapJSONForMe() so user
    can choose whether to print JSON or just strings, dammit
Commits on Nov 29, 2011
  1. @theterg

    SwarmMessage abstracted out, message parsing forkd

    theterg authored
    Instead of doing all the parsing and loading in available(), we
    get the message and load it into a SwarmMessage object.  This
    all happens in fetchMessage(), so that available() is free'd up
    
    Next:
    -abstract the free() and destroy() from the user code - make a
     parseForMe() function to handle that stuff
    -Add a new constructor to SwarmMessage that can use the stream
     directly - using a char * is super inefficient...
Commits on Nov 28, 2011
  1. @theterg
  2. @theterg

    simple produce/consume complete, example updated

    theterg authored
    produce() and consume() now *work*.  produce is pretty
    straightforward, and doesn't do anything fancy (make sure your
    messages are in the right format!)
    
    Consume() right now is a bit of a hack - it only returns a
    reference to the buffer location of the message.  You will need
    to copy that memory out before doing anything else, or it will
    be overwritten.
Commits on Nov 23, 2011
  1. @theterg

    closer to flexible consume/produce, but issues!

    theterg authored
    swarm.available() will essentially fetch the next packet and parse
    it.  This should probably be renamed...
    swarm.consume() and swarm.getSender() return data right out of the
    swarm_buff - saving them bytes!
    
    added printBuffer() as a valuable debug
    
    swarm.available() and swarm.consume() AAALMOST work except for:
    -a nasty race condition causing something in swarm.available() to
    block indefinately - printf-ing causes this to go away
    -poor payload end detection logic - right now just a placeholder
    
    Next more thought into informing user of presence / more options
    for producing (would you like JSON with that?)
  2. @theterg

    library now in proper arduino format, plus bugfix

    theterg authored
    Started to add a method of auto-reconnecting to the swarm server
    if we don't see echo'd messages, but scrapped it.
  3. @theterg

    Halfway moved code into seperate library

    theterg authored
    Next - going to re-structure this so it can be dropped into the
    ~/sketchbook/libraries folder and to fork out example code
Commits on Nov 14, 2011
  1. @jedahan

    specify requirements in readme

    jedahan authored
Commits on Nov 7, 2011
  1. @jedahan
  2. @jedahan

    rename mvp->perugia

    jedahan authored
  3. @jedahan

    present tense

    jedahan authored
  4. @jedahan

    clarify readme

    jedahan authored
  5. @jedahan

    switch to mvp

    jedahan authored
  6. @jedahan
Commits on Nov 3, 2011
  1. @jedahan
Commits on Oct 28, 2011
  1. @jedahan
  2. @jedahan
  3. @jedahan

    switch to static addresses

    jedahan authored
Commits on Oct 26, 2011
  1. @jedahan

    IT COMPILES

    jedahan authored
Commits on Oct 21, 2011
  1. @jedahan

    initial readme

    jedahan authored
  2. @jedahan
  3. @jedahan

    initial commit

    jedahan authored
Something went wrong with that request. Please try again.