make-shift-brew-ui
Version:
Common User Interface for the Brewfactory projects, modified for MakeShift Aleworks
19 lines (13 loc) • 439 B
JavaScript
/*
* Action: receive temperature
*
* @module receiveTemperature
*/
;
var debug = require('debug')('BrewUI:action');
debug.log = console.debug.bind(console);
var BrewerConstants = require('../../constants/BrewerConstants');
module.exports = function (context, payload) {
//debug('dispatching RECEIVE_TEMPERATURE', payload);
context.dispatch(BrewerConstants.ActionTypes.RECEIVE_TEMPERATURE, payload.temperature);
};