Permalink
Switch branches/tags
Nothing to show
Commits on Dec 6, 2011
  1. much comments added

    theterg committed Dec 6, 2011
Commits on Dec 5, 2011
Commits on Dec 2, 2011
  1. Deprecated SwarmMessage

    dynamic memory allocation = BAD
    theterg committed Dec 2, 2011
  2. wrapJSONForMe now impacts read()

    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...
    theterg committed Dec 2, 2011
Commits on Dec 1, 2011
  1. read() method re-written to be stateful, non-blocking

    -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
    theterg committed Dec 1, 2011
Commits on Nov 30, 2011
  1. Made AnalogBroadcast a bit more stable

    -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
    theterg committed Nov 30, 2011
Commits on Nov 29, 2011
  1. SwarmMessage abstracted out, message parsing forkd

    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...
    theterg committed Nov 29, 2011
Commits on Nov 28, 2011
  1. simple produce/consume complete, example updated

    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.
    theterg committed Nov 28, 2011
Commits on Nov 23, 2011
  1. closer to flexible consume/produce, but issues!

    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?)
    theterg committed Nov 23, 2011
  2. library now in proper arduino format, plus bugfix

    Started to add a method of auto-reconnecting to the swarm server
    if we don't see echo'd messages, but scrapped it.
    theterg committed Nov 23, 2011
  3. Halfway moved code into seperate library

    Next - going to re-structure this so it can be dropped into the
    ~/sketchbook/libraries folder and to fork out example code
    theterg committed Nov 23, 2011
Commits on Nov 14, 2011
  1. specify requirements in readme

    jedahan committed Nov 14, 2011
Commits on Nov 7, 2011
  1. print out messages to console!

    jedahan committed Nov 7, 2011
  2. rename mvp->perugia

    jedahan committed Nov 7, 2011
  3. present tense

    jedahan committed Nov 7, 2011
  4. clarify readme

    jedahan committed Nov 7, 2011
  5. switch to mvp

    jedahan committed Nov 7, 2011
Commits on Nov 3, 2011
Commits on Oct 28, 2011
  1. switch to static addresses

    jedahan committed Oct 28, 2011
Commits on Oct 26, 2011
  1. IT COMPILES

    jedahan committed Oct 26, 2011
Commits on Oct 21, 2011
  1. initial readme

    jedahan committed Oct 21, 2011
  2. initial commit

    jedahan committed Oct 21, 2011